From c4a4a8659aaa771228ca4cb868177b7f0d9d9b8b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Feb 2024 12:51:14 -0500 Subject: [PATCH] More parsing work. --- src/engine/objects/ItemTemplate.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 6597da19..18004747 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -68,6 +68,8 @@ public class ItemTemplate { public EnumSet item_class_res = EnumSet.noneOf(Enum.ClassType.class); public EnumSet item_disc_req = EnumSet.noneOf(Enum.DisciplineType.class); public EnumSet item_disc_res = EnumSet.noneOf(Enum.DisciplineType.class); + public int item_level_req; + public Enum.SexType item_sex_req; public ItemTemplate(JSONObject jsonObject) { @@ -253,6 +255,9 @@ public class ItemTemplate { item_disc_req.add(Enum.DisciplineType.valueOf(disc)); } + item_level_req = ((Long) jsonObject.get("item_level_req")).intValue(); + item_sex_req = Enum.SexType.valueOf((String) jsonObject.get("item_sex_req")); + } catch (Exception e) { Logger.error(e); }