Browse Source

Parsing cleanup

combat-2
MagicBot 9 months ago
parent
commit
37fec69462
  1. 5
      src/engine/objects/ItemTemplate.java

5
src/engine/objects/ItemTemplate.java

@ -130,7 +130,10 @@ public class ItemTemplate { @@ -130,7 +130,10 @@ public class ItemTemplate {
}
item_parry_anim_id = ((Long) jsonObject.get("item_parry_anim_id")).intValue();
item_bulk_factor = ((Double) jsonObject.get("item_bulk_factor")).floatValue();
if (jsonObject.containsValue("item_bulk_factor"))
item_bulk_factor = ((Double) jsonObject.get("item_bulk_factor")).floatValue();
item_defense_rating = ((Double) jsonObject.get("item_defense_rating")).floatValue();
JSONArray itemflags = (JSONArray) jsonObject.get("item_flags");

Loading…
Cancel
Save