not_enemy_types_json parsed
This commit is contained in:
@@ -504,6 +504,15 @@ public class ItemTemplate {
|
|||||||
rune_enemy_monster_types.add(monsterType);
|
rune_enemy_monster_types.add(monsterType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSONArray not_enemy_types_json = (JSONArray) jsonObject.get("rune_not_enemy_monster_types");
|
||||||
|
|
||||||
|
for (Object o : enemy_types_json) {
|
||||||
|
String notenemy = (String) o;
|
||||||
|
notenemy = notenemy.replaceAll("-", "");
|
||||||
|
Enum.MonsterType monsterType = Enum.MonsterType.valueOf(notenemy);
|
||||||
|
not_enemy_types_json.add(monsterType);
|
||||||
|
}
|
||||||
|
|
||||||
rune_renderable = ((Boolean) jsonObject.get("rune_renderable"));
|
rune_renderable = ((Boolean) jsonObject.get("rune_renderable"));
|
||||||
rune_natural_power_attack = ((Long) jsonObject.get("rune_natural_power_attack")).intValue();
|
rune_natural_power_attack = ((Long) jsonObject.get("rune_natural_power_attack")).intValue();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user