diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index f19ef567..57676d62 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -47,7 +47,7 @@ public class ItemTemplate { public EnumSet 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)) {