Browse Source

Fleshing out constructor

combat-2
MagicBot 9 months ago
parent
commit
90874b01a7
  1. 8
      src/engine/objects/ItemTemplate.java

8
src/engine/objects/ItemTemplate.java

@ -36,7 +36,13 @@ public class ItemTemplate { @@ -36,7 +36,13 @@ public class ItemTemplate {
obj_render_object = ((Long) jsonObject.get("obj_render_object")).intValue();
combat_attack_resist = (HashMap<String, Float>) jsonObject.get("combat_attack_resist");
JSONObject resist_json = (JSONObject) jsonObject.get("combat_attack_resist");
for (Object key : resist_json.keySet()) {
Float resist = (Float) resist_json.get((String) key);
combat_attack_resist.put((String) key, resist);
}
}

Loading…
Cancel
Save