Compare commits

...

2 Commits

Author SHA1 Message Date
MagicBot 27971c5fb3 not_enemy_types_json parsed 2024-04-04 13:18:37 -04:00
MagicBot 52fab5d92b not_enemy_types_json parsed 2024-04-04 13:18:19 -04:00
+2 -4
View File
@@ -49,7 +49,6 @@ public class ItemTemplate {
public String item_dsc;
public int item_render_object_female;
public float item_health_full;
public String item_skill_used = "";
public String item_skill_mastery_used = "";
public int item_parry_anim_id;
@@ -72,7 +71,6 @@ public class ItemTemplate {
public HashMap<String, Integer> item_skill_required = new HashMap<>();
public EnumSet<Enum.MonsterType> item_race_req = EnumSet.noneOf(Enum.MonsterType.class);
public EnumSet<Enum.MonsterType> item_race_res = EnumSet.noneOf(Enum.MonsterType.class);
public EnumSet<Enum.ClassType> item_class_req = EnumSet.noneOf(Enum.ClassType.class);
public EnumSet<Enum.ClassType> item_class_res = EnumSet.noneOf(Enum.ClassType.class);
public EnumSet<Enum.DisciplineType> item_disc_req = EnumSet.noneOf(Enum.DisciplineType.class);
@@ -506,11 +504,11 @@ 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);
not_enemy_types_json.add(monsterType);
rune_not_enemy_monster_types.add(monsterType);
}
rune_renderable = ((Boolean) jsonObject.get("rune_renderable"));