From 7e6c051a0204c2b0fd7990fb1ceeb89a6edb9a36 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 4 Apr 2024 10:39:54 -0400 Subject: [PATCH] More parsing work; sparse_data field loaded into string for now. --- src/engine/objects/ItemTemplate.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index aab6cca2..1a11bc04 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -473,6 +473,17 @@ public class ItemTemplate { rune_speed.put(movementType, speed); } + rune_group_type = ((Long) jsonObject.get("rune_group_type")).intValue(); + rune_group_is_faction = ((Boolean) jsonObject.get("rune_group_is_faction")); + rune_group_is_guild = ((Boolean) jsonObject.get("rune_group_is_guild")); + rune_dsc = (String) jsonObject.get("rune_dsc"); + rune_fx_txt = (String) jsonObject.get("rune_fx_txt"); + rune_group_tactics = ((Long) jsonObject.get("rune_group_tactics")).intValue(); + rune_group_role_set = ((Long) jsonObject.get("rune_group_role_set")).intValue(); + + rune_renderable = ((Boolean) jsonObject.get("rune_renderable")); + rune_natural_power_attack = ((Long) jsonObject.get("rune_natural_power_attack")).intValue(); + rune_sparse_data = (String) jsonObject.get("rune_sparse_data"); JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj");