Combination system float chance support and data update.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@
|
|||||||
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
||||||
<xs:attribute type="xs:int" name="two" use="required" />
|
<xs:attribute type="xs:int" name="two" use="required" />
|
||||||
<xs:attribute type="xs:long" name="commission" use="optional" />
|
<xs:attribute type="xs:long" name="commission" use="optional" />
|
||||||
<xs:attribute type="xs:byte" name="chance" use="optional" />
|
<xs:attribute type="xs:float" name="chance" use="optional" />
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
|
@@ -30,7 +30,7 @@ public class CombinationItem
|
|||||||
private final int _enchant;
|
private final int _enchant;
|
||||||
private final int _itemTwo;
|
private final int _itemTwo;
|
||||||
private final long _commission;
|
private final long _commission;
|
||||||
private final int _chance;
|
private final float _chance;
|
||||||
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
||||||
|
|
||||||
public CombinationItem(StatSet set)
|
public CombinationItem(StatSet set)
|
||||||
@@ -39,7 +39,7 @@ public class CombinationItem
|
|||||||
_enchant = set.getInt("enchant", 0);
|
_enchant = set.getInt("enchant", 0);
|
||||||
_itemTwo = set.getInt("two");
|
_itemTwo = set.getInt("two");
|
||||||
_commission = set.getLong("commission", 0);
|
_commission = set.getLong("commission", 0);
|
||||||
_chance = set.getInt("chance", 33);
|
_chance = set.getFloat("chance", 33);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getItemOne()
|
public int getItemOne()
|
||||||
@@ -62,7 +62,7 @@ public class CombinationItem
|
|||||||
return _commission;
|
return _commission;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getChance()
|
public float getChance()
|
||||||
{
|
{
|
||||||
return _chance;
|
return _chance;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@
|
|||||||
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
||||||
<xs:attribute type="xs:int" name="two" use="required" />
|
<xs:attribute type="xs:int" name="two" use="required" />
|
||||||
<xs:attribute type="xs:long" name="commission" use="optional" />
|
<xs:attribute type="xs:long" name="commission" use="optional" />
|
||||||
<xs:attribute type="xs:byte" name="chance" use="optional" />
|
<xs:attribute type="xs:float" name="chance" use="optional" />
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
|
@@ -30,7 +30,7 @@ public class CombinationItem
|
|||||||
private final int _enchant;
|
private final int _enchant;
|
||||||
private final int _itemTwo;
|
private final int _itemTwo;
|
||||||
private final long _commission;
|
private final long _commission;
|
||||||
private final int _chance;
|
private final float _chance;
|
||||||
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
||||||
|
|
||||||
public CombinationItem(StatSet set)
|
public CombinationItem(StatSet set)
|
||||||
@@ -39,7 +39,7 @@ public class CombinationItem
|
|||||||
_enchant = set.getInt("enchant", 0);
|
_enchant = set.getInt("enchant", 0);
|
||||||
_itemTwo = set.getInt("two");
|
_itemTwo = set.getInt("two");
|
||||||
_commission = set.getLong("commission", 0);
|
_commission = set.getLong("commission", 0);
|
||||||
_chance = set.getInt("chance", 33);
|
_chance = set.getFloat("chance", 33);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getItemOne()
|
public int getItemOne()
|
||||||
@@ -62,7 +62,7 @@ public class CombinationItem
|
|||||||
return _commission;
|
return _commission;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getChance()
|
public float getChance()
|
||||||
{
|
{
|
||||||
return _chance;
|
return _chance;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@
|
|||||||
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
||||||
<xs:attribute type="xs:int" name="two" use="required" />
|
<xs:attribute type="xs:int" name="two" use="required" />
|
||||||
<xs:attribute type="xs:long" name="commission" use="optional" />
|
<xs:attribute type="xs:long" name="commission" use="optional" />
|
||||||
<xs:attribute type="xs:byte" name="chance" use="optional" />
|
<xs:attribute type="xs:float" name="chance" use="optional" />
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
|
@@ -30,7 +30,7 @@ public class CombinationItem
|
|||||||
private final int _enchant;
|
private final int _enchant;
|
||||||
private final int _itemTwo;
|
private final int _itemTwo;
|
||||||
private final long _commission;
|
private final long _commission;
|
||||||
private final int _chance;
|
private final float _chance;
|
||||||
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
||||||
|
|
||||||
public CombinationItem(StatSet set)
|
public CombinationItem(StatSet set)
|
||||||
@@ -39,7 +39,7 @@ public class CombinationItem
|
|||||||
_enchant = set.getInt("enchant", 0);
|
_enchant = set.getInt("enchant", 0);
|
||||||
_itemTwo = set.getInt("two");
|
_itemTwo = set.getInt("two");
|
||||||
_commission = set.getLong("commission", 0);
|
_commission = set.getLong("commission", 0);
|
||||||
_chance = set.getInt("chance", 33);
|
_chance = set.getFloat("chance", 33);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getItemOne()
|
public int getItemOne()
|
||||||
@@ -62,7 +62,7 @@ public class CombinationItem
|
|||||||
return _commission;
|
return _commission;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getChance()
|
public float getChance()
|
||||||
{
|
{
|
||||||
return _chance;
|
return _chance;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@
|
|||||||
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
<xs:attribute type="xs:byte" name="enchant" use="optional" />
|
||||||
<xs:attribute type="xs:int" name="two" use="required" />
|
<xs:attribute type="xs:int" name="two" use="required" />
|
||||||
<xs:attribute type="xs:long" name="commission" use="optional" />
|
<xs:attribute type="xs:long" name="commission" use="optional" />
|
||||||
<xs:attribute type="xs:byte" name="chance" use="optional" />
|
<xs:attribute type="xs:float" name="chance" use="optional" />
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
|
@@ -30,7 +30,7 @@ public class CombinationItem
|
|||||||
private final int _enchant;
|
private final int _enchant;
|
||||||
private final int _itemTwo;
|
private final int _itemTwo;
|
||||||
private final long _commission;
|
private final long _commission;
|
||||||
private final int _chance;
|
private final float _chance;
|
||||||
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
private final Map<CombinationItemType, CombinationItemReward> _rewards = new EnumMap<>(CombinationItemType.class);
|
||||||
|
|
||||||
public CombinationItem(StatSet set)
|
public CombinationItem(StatSet set)
|
||||||
@@ -39,7 +39,7 @@ public class CombinationItem
|
|||||||
_enchant = set.getInt("enchant", 0);
|
_enchant = set.getInt("enchant", 0);
|
||||||
_itemTwo = set.getInt("two");
|
_itemTwo = set.getInt("two");
|
||||||
_commission = set.getLong("commission", 0);
|
_commission = set.getLong("commission", 0);
|
||||||
_chance = set.getInt("chance", 33);
|
_chance = set.getFloat("chance", 33);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getItemOne()
|
public int getItemOne()
|
||||||
@@ -62,7 +62,7 @@ public class CombinationItem
|
|||||||
return _commission;
|
return _commission;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getChance()
|
public float getChance()
|
||||||
{
|
{
|
||||||
return _chance;
|
return _chance;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user