Browse Source

Faster if bitvector is 0.

combat-2
MagicBot 9 months ago
parent
commit
aad0418260
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -496,9 +496,13 @@ public class ItemTemplate { @@ -496,9 +496,13 @@ public class ItemTemplate {
rune_fx_txt = (String) jsonObject.get("rune_fx_txt");
int group_tactics_bitvector = ((Long) jsonObject.get("rune_group_tactics")).intValue();
if (group_tactics_bitvector != 0)
rune_group_tactics.addAll(Enum.fromLong(group_tactics_bitvector, Enum.MobBehaviourType.class));
int group_role_bitvector = ((Long) jsonObject.get("rune_group_role_set")).intValue();
if (group_role_bitvector != 0)
rune_group_role_set.addAll(Enum.fromLong(group_role_bitvector, Enum.MobBehaviourType.class));
JSONArray enemy_types_json = (JSONArray) jsonObject.get("rune_enemy_monster_types");

Loading…
Cancel
Save