diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index a42aeb9e..a841551f 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -510,10 +510,14 @@ public class ItemTemplate { JSONObject skill = (JSONObject) skillEntry; String typeString = (String) skill.get("skill_type"); JSONArray adjArray = (JSONArray) skill.get("skill_adjusts"); - int[] adjusts = {((Long) adjArray.get(0)).intValue(), ((Long) adjArray.get(1)).intValue()}; - rune_skill_adj.put(typeString, adjusts); - } + for (Object adjustList : adjArray) { + JSONArray adjustEntry = (JSONArray) adjustList; + int[] adjust = {((Long) adjustEntry.get(0)).intValue(), ((Long) adjustEntry.get(1)).intValue()}; + rune_skill_adj.put(typeString, adjust); + } + + } JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); for (Object attributeEntry : attr_adj_json) {