From 412fec17a6d228203785d3683baa059638163094 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 16 Mar 2024 07:27:20 -0400 Subject: [PATCH] Deed related fields parsed in template --- src/engine/objects/ItemTemplate.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index c2bb0bad..24a4cf87 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -87,6 +87,7 @@ public class ItemTemplate { // Deed related fields + public int deed_type; public int deed_furniture_id; public int deed_target_id; public int deed_employment; @@ -384,6 +385,17 @@ public class ItemTemplate { // Deed related fields if (item_type.equals(Enum.ItemType.DEED)) { + + deed_type = ((Long) jsonObject.get("deed_type")).intValue(); + deed_furniture_id = ((Long) jsonObject.get("deed_furniture_id")).intValue(); + deed_target_id = ((Long) jsonObject.get("deed_target_id")).intValue(); + deed_employment = ((Long) jsonObject.get("deed_employment")).intValue(); + deed_start_rank = ((Long) jsonObject.get("deed_start_rank")).intValue(); + deed_name_lookup = ((Long) jsonObject.get("deed_start_rank")).intValue(); + deed_indoors = ((Boolean) disc_required.get("deed_indoors")); + deed_is_fortress = ((Boolean) disc_required.get("deed_is_fortress")); + deed_namelookup_val = ((Double) jsonObject.get("deed_namelookup_val")).floatValue(); + deed_custom_city = ((Boolean) disc_required.get("deed_custom_city")); deed_structure_id = ((Long) jsonObject.get("deed_structure_id")).intValue(); }