forked from MagicBane/Server
Def rating is an int
This commit is contained in:
@@ -47,7 +47,7 @@ public class ItemTemplate {
|
||||
public EnumSet<Enum.CharacterSkills> item_skill_mastery_used = EnumSet.noneOf(Enum.CharacterSkills.class);
|
||||
// Armor specific fields
|
||||
public float item_bulk_factor;
|
||||
public float item_defense_rating;
|
||||
public int item_defense_rating;
|
||||
// Weapon specific fields
|
||||
public float item_weapon_wepspeed;
|
||||
public float item_weapon_max_range;
|
||||
@@ -153,7 +153,7 @@ public class ItemTemplate {
|
||||
|
||||
if (item_type.equals(Enum.ItemType.ARMOR)) {
|
||||
item_bulk_factor = ((Double) jsonObject.get("item_bulk_factor")).floatValue();
|
||||
item_defense_rating = ((Double) jsonObject.get("item_defense_rating")).floatValue();
|
||||
item_defense_rating = ((Long) jsonObject.get("item_defense_rating")).intValue();
|
||||
}
|
||||
|
||||
if (item_type.equals(Enum.ItemType.WEAPON)) {
|
||||
|
||||
Reference in New Issue
Block a user