From e448c9a0d3e548845532360b9798b7b737d65e70 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 24 Feb 2024 14:16:01 -0500 Subject: [PATCH] Parsing races --- src/engine/objects/ItemTemplate.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 339cfb5b..f25417f9 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -51,8 +51,8 @@ public class ItemTemplate { public EnumSet item_use_flags = EnumSet.noneOf(Enum.ItemUseFlags.class); public int item_initial_charges; public HashMap item_skill_required = new HashMap<>(); - public EnumSet item_race_req = EnumSet.noneOf(Enum.RaceType.class); - public EnumSet item_race_res = EnumSet.noneOf(Enum.RaceType.class); + public EnumSet item_race_req = EnumSet.noneOf(Enum.MonsterType.class); + public EnumSet item_race_res = EnumSet.noneOf(Enum.MonsterType.class); public ItemTemplate(JSONObject jsonObject) { @@ -181,9 +181,9 @@ public class ItemTemplate { race = race.replaceAll(",", ""); if (restrict) - item_race_res.add(Enum.RaceType.valueOf(race)); + item_race_res.add(Enum.MonsterType.valueOf(race)); else - item_race_req.add(Enum.RaceType.valueOf(race)); + item_race_req.add(Enum.MonsterType.valueOf(race)); } } catch (Exception e) {