Browse Source

More constructor work.

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

5
src/engine/objects/ItemTemplate.java

@ -107,7 +107,8 @@ public class ItemTemplate {
Object skills_used = jsonObject.get("item_skill_used"); Object skills_used = jsonObject.get("item_skill_used");
if (skills_used != null) if (skills_used instanceof JSONArray)
item_skill_used.add(Enum.CharacterSkills.Axe); for (Object o : (JSONArray) skills_used)
item_skill_used.add(Enum.CharacterSkills.valueOf((String) o));
} }
} }

Loading…
Cancel
Save