Browse Source

More constructor work.

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

5
src/engine/objects/ItemTemplate.java

@ -105,10 +105,9 @@ public class ItemTemplate {
item_render_object_female = ((Long) jsonObject.get("item_render_object_female")).intValue(); item_render_object_female = ((Long) jsonObject.get("item_render_object_female")).intValue();
item_health_full = ((Double) jsonObject.get("item_health_full")).floatValue(); item_health_full = ((Double) jsonObject.get("item_health_full")).floatValue();
JSONArray skills_used = (JSONArray) jsonObject.get("item_skill_used"); Object skills_used = jsonObject.get("item_skill_used");
if (skills_used != null) if (skills_used != null)
for (Object o : skills_used) item_skill_used.add(Enum.CharacterSkills.Axe);
item_skill_used.add(Enum.CharacterSkills.valueOf((String) o));
} }
} }

Loading…
Cancel
Save