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); }