|
|
|
@ -129,6 +129,8 @@ public class ItemTemplate {
@@ -129,6 +129,8 @@ public class ItemTemplate {
|
|
|
|
|
public int rune_natural_power_attack; |
|
|
|
|
public HashMap<String, String> rune_sparse_data = new HashMap<>(); |
|
|
|
|
public HashMap<String, int[]> rune_skill_adj = new HashMap<>(); |
|
|
|
|
public EnumSet<Enum.MonsterType> rune_enemy_monster_types = EnumSet.noneOf(Enum.MonsterType.class); |
|
|
|
|
public EnumSet<Enum.MonsterType> rune_not_enemy_monster_types = EnumSet.noneOf(Enum.MonsterType.class); |
|
|
|
|
|
|
|
|
|
public ItemTemplate(JSONObject jsonObject) { |
|
|
|
|
|
|
|
|
@ -493,6 +495,14 @@ public class ItemTemplate {
@@ -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(); |
|
|
|
|
|
|
|
|
|