Browse Source

Weapon field parsing

combat-2
MagicBot 9 months ago
parent
commit
36f12f9c97
  1. 2
      src/engine/objects/ItemTemplate.java

2
src/engine/objects/ItemTemplate.java

@ -167,7 +167,7 @@ public class ItemTemplate { @@ -167,7 +167,7 @@ public class ItemTemplate {
JSONObject weapon_damage = (JSONObject) jsonObject.get("weapon_damage");
item_weapon_damage_type = Enum.DamageType.valueOf((String) weapon_damage.get("damage_type"));
item_weapon_damage_min = ((Long) weapon_damage.get("damage_mi")).intValue();
item_weapon_damage_min = ((Long) weapon_damage.get("damage_min")).intValue();
item_weapon_damage_max = ((Long) weapon_damage.get("damage_max")).intValue();
}

Loading…
Cancel
Save