From 68b9f9e88761195587e0e44cab45b35048b90c08 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 4 Apr 2024 09:54:52 -0400 Subject: [PATCH] More rune parsing --- src/engine/objects/ItemTemplate.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index c43a6907..50ac2295 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -83,9 +83,6 @@ public class ItemTemplate { public HashMap item_power_action = new HashMap<>(); public HashMap item_resource_cost = new HashMap<>(); public int modTable; - - // Deed related fields - public int deed_type; public int deed_furniture_id; public int deed_target_id; @@ -102,6 +99,9 @@ public class ItemTemplate { public HashMap rune_skill_grant = new HashMap<>(); public HashMap skill_granted_skills = new HashMap<>(); public HashMap power_granted_skills = new HashMap<>(); + public String rune_type; + public String rune_sub_type; + public ItemTemplate(JSONObject jsonObject) { @@ -417,6 +417,9 @@ public class ItemTemplate { if (item_type.equals(Enum.ItemType.RUNE)) { + rune_type = (String) jsonObject.get("rune_type"); + rune_sub_type = (String) jsonObject.get("rune_sub_type"); + JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); for (Object attributeEntry : attr_adj_json) {