From 52116063e5a99f060d52f909b6844e5cc40c5663 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 4 Apr 2024 15:02:19 -0400 Subject: [PATCH] Test if value is enumset --- src/engine/objects/ItemTemplate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 50b4b4ff..85fe32ed 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -493,6 +493,7 @@ public class ItemTemplate { rune_dsc = (String) jsonObject.get("rune_dsc"); rune_fx_txt = (String) jsonObject.get("rune_fx_txt"); rune_group_tactics = ((Long) jsonObject.get("rune_group_tactics")).intValue(); + EnumSet tactics = Enum.fromLong(rune_group_tactics, Enum.MobBehaviourType.class); rune_group_role_set = ((Long) jsonObject.get("rune_group_role_set")).intValue(); JSONArray enemy_types_json = (JSONArray) jsonObject.get("rune_enemy_monster_types");