Test if value is enumset
This commit is contained in:
@@ -493,6 +493,7 @@ public class ItemTemplate {
|
|||||||
rune_dsc = (String) jsonObject.get("rune_dsc");
|
rune_dsc = (String) jsonObject.get("rune_dsc");
|
||||||
rune_fx_txt = (String) jsonObject.get("rune_fx_txt");
|
rune_fx_txt = (String) jsonObject.get("rune_fx_txt");
|
||||||
rune_group_tactics = ((Long) jsonObject.get("rune_group_tactics")).intValue();
|
rune_group_tactics = ((Long) jsonObject.get("rune_group_tactics")).intValue();
|
||||||
|
EnumSet<Enum.MobBehaviourType> tactics = Enum.fromLong(rune_group_tactics, Enum.MobBehaviourType.class);
|
||||||
rune_group_role_set = ((Long) jsonObject.get("rune_group_role_set")).intValue();
|
rune_group_role_set = ((Long) jsonObject.get("rune_group_role_set")).intValue();
|
||||||
|
|
||||||
JSONArray enemy_types_json = (JSONArray) jsonObject.get("rune_enemy_monster_types");
|
JSONArray enemy_types_json = (JSONArray) jsonObject.get("rune_enemy_monster_types");
|
||||||
|
|||||||
Reference in New Issue
Block a user