Browse Source

not_enemy_types_json parsed

combat-2
MagicBot 8 months ago
parent
commit
27971c5fb3
  1. 2
      src/engine/objects/ItemTemplate.java

2
src/engine/objects/ItemTemplate.java

@ -504,7 +504,7 @@ public class ItemTemplate { @@ -504,7 +504,7 @@ public class ItemTemplate {
JSONArray not_enemy_types_json = (JSONArray) jsonObject.get("rune_not_enemy_monster_types");
for (Object o : enemy_types_json) {
for (Object o : not_enemy_types_json) {
String notenemy = (String) o;
notenemy = notenemy.replaceAll("-", "");
Enum.MonsterType monsterType = Enum.MonsterType.valueOf(notenemy);

Loading…
Cancel
Save