From 5c20fca28a21baaaaf8c8237a074f42e188ee10d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 4 Apr 2024 12:16:29 -0400 Subject: [PATCH] Rune skill adjusts parsed --- src/engine/objects/ItemTemplate.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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) {