From 507769c6b6524148265306d49dbd7ea87b5cb12c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 28 Feb 2024 14:59:17 -0500 Subject: [PATCH] item_takeable parsed. --- src/engine/objects/ItemTemplate.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index b462b0c4..fde75522 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -39,6 +39,7 @@ public class ItemTemplate { public boolean item_eq_slots_type; public EnumSet item_eq_slots_or = EnumSet.noneOf(Enum.ItemEquipSlotType.class); public EnumSet item_eq_slots_and = EnumSet.noneOf(Enum.ItemEquipSlotType.class); + public boolean item_takeable; public int item_value; public int item_wt; public float item_passive_defense_mod; @@ -149,6 +150,7 @@ public class ItemTemplate { for (Object o : eq_slots_and) item_eq_slots_and.add(Enum.ItemEquipSlotType.valueOf((String) o)); + item_takeable = (boolean) jsonObject.get("item_takeable"); item_value = ((Long) jsonObject.get("item_value")).intValue(); item_wt = ((Long) jsonObject.get("item_wt")).intValue(); item_passive_defense_mod = ((Double) jsonObject.get("item_passive_defense_mod")).floatValue();