From 460a2152c8d708d700cb626ec18151a20c13ccf0 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 7 Apr 2023 13:38:09 -0500 Subject: [PATCH] MobLoot usage --- src/engine/ai/MobileFSM.java | 2 ++ src/engine/loot/LootManager.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index f3456e62..05cdbb31 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -61,6 +61,8 @@ public class MobileFSM { if (mob == null) { return; } + if (mob.isGuard()) + awakeNPCguard(mob); STATE state = mob.state; switch (state) { case Idle: diff --git a/src/engine/loot/LootManager.java b/src/engine/loot/LootManager.java index 890a074c..99f6f322 100644 --- a/src/engine/loot/LootManager.java +++ b/src/engine/loot/LootManager.java @@ -90,12 +90,12 @@ public class LootManager { break; } //iterate the booty tables and add items to mob inventory - Item toAdd = getGenTableItem(bse.lootTable, mob); + MobLoot toAdd = getGenTableItem(bse.lootTable, mob); if (toAdd != null) { mob.getCharItemManager().addItemToInventory(toAdd); } if (inHotzone) { - Item toAddHZ = getGenTableItem(bse.lootTable + 1, mob); + MobLoot toAddHZ = getGenTableItem(bse.lootTable + 1, mob); if (toAddHZ != null) mob.getCharItemManager().addItemToInventory(toAddHZ);