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

Loading…
Cancel
Save