From 25c0e48181cee7cc6dc7ee7c0f526ff5a5e49d08 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 1 Sep 2023 12:55:33 -0400 Subject: [PATCH] Loot bypass now uses agent type. --- src/engine/objects/Mob.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 7b41f814..e8efd569 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -982,8 +982,7 @@ public class Mob extends AbstractIntelligenceAgent { else if (this.building != null) this.region = BuildingManager.GetRegion(this.building, bindLoc.x, bindLoc.y, bindLoc.z); - if (!this.behaviourType.equals(MobBehaviourType.SiegeEngine) && !this.isPlayerGuard() && contract == null) - loadInventory(); + this.loadInventory(); this.updateLocation(); } @@ -1021,7 +1020,9 @@ public class Mob extends AbstractIntelligenceAgent { this.charItemManager.clearInventory(); this.charItemManager.clearEquip(); - if (this.isPlayerGuard()) + // Only generate loot for mobiles + + if (!this.agentType.equals(AIAgentType.MOBILE)) return; LootManager.GenerateMobLoot(this);