From 1603c8d8e9433c4cea57d6fd8976592e4d725125 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 2 Apr 2024 14:37:01 -0400 Subject: [PATCH] Rename to conform --- src/engine/objects/ItemTemplate.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 4fcedc2a..95e137a4 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -408,12 +408,11 @@ public class ItemTemplate { if (item_type.equals(Enum.ItemType.RUNE)) { - JSONObject attr_adj_json = (JSONObject) jsonObject.get("rune_attr_adj"); + JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); + + for (Object attributes : attr_adj_json) { + attributes.toString(); - for (Object key : attr_adj_json.keySet()) { - Enum.AttributeType attributeType = Enum.AttributeType.valueOf((String) key); - int value = ((Long) resist_json.get(key)).intValue(); - rune_attr_adj.put(attributeType, value); } }