From 4fe6040707625c8a8da2ffc252d0de354794b7d9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 9 Apr 2023 13:31:42 -0400 Subject: [PATCH] enemy/notEnemy bitvectors loaded into mobbase. --- src/engine/objects/MobBase.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/engine/objects/MobBase.java b/src/engine/objects/MobBase.java index df74ca02..f231af21 100644 --- a/src/engine/objects/MobBase.java +++ b/src/engine/objects/MobBase.java @@ -62,6 +62,10 @@ public class MobBase extends AbstractGameObject { private float runCombat = 0; public int bootySet; public String fsm = ""; + + public EnumBitSet notEnemy; + public EnumBitSet enemy; + /** * ResultSet Constructor */ @@ -108,6 +112,11 @@ public class MobBase extends AbstractGameObject { this.flags = EnumBitSet.asEnumBitSet(rs.getLong("flags"), Enum.MobFlagType.class); this.noAggro = EnumBitSet.asEnumBitSet(rs.getLong("noaggro"), Enum.AggroType.class); + // From cache data + + this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class); + this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class); + this.seeInvis = rs.getInt("seeInvis"); this.scale = rs.getFloat("scale"); this.hitBoxRadius = 5f;