diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 0fa0f54a..a42aeb9e 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -128,6 +128,7 @@ public class ItemTemplate { public boolean rune_renderable = false; public int rune_natural_power_attack; public HashMap rune_sparse_data = new HashMap<>(); + public HashMap rune_skill_adj = new HashMap<>(); public ItemTemplate(JSONObject jsonObject) { @@ -503,6 +504,16 @@ public class ItemTemplate { rune_sparse_data.put(sparseType, sparseValue.toString()); } + JSONArray skill_adj_json = (JSONArray) jsonObject.get("rune_skill_adj"); + + for (Object skillEntry : skill_adj_json) { + 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); + } + JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); for (Object attributeEntry : attr_adj_json) {