diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index a841551f..25e5b5e2 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -129,6 +129,8 @@ public class ItemTemplate { public int rune_natural_power_attack; public HashMap rune_sparse_data = new HashMap<>(); public HashMap rune_skill_adj = new HashMap<>(); + public EnumSet rune_enemy_monster_types = EnumSet.noneOf(Enum.MonsterType.class); + public EnumSet rune_not_enemy_monster_types = EnumSet.noneOf(Enum.MonsterType.class); public ItemTemplate(JSONObject jsonObject) { @@ -493,6 +495,14 @@ public class ItemTemplate { rune_group_tactics = ((Long) jsonObject.get("rune_group_tactics")).intValue(); rune_group_role_set = ((Long) jsonObject.get("rune_group_role_set")).intValue(); + JSONArray enemy_types_json = (JSONArray) jsonObject.get("rune_enemy_monster_types"); + + for (Object o : enemy_types_json) { + String enemy = (String) o; + Enum.MonsterType monsterType = Enum.MonsterType.valueOf(enemy); + rune_enemy_monster_types.add(monsterType); + } + rune_renderable = ((Boolean) jsonObject.get("rune_renderable")); rune_natural_power_attack = ((Long) jsonObject.get("rune_natural_power_attack")).intValue();