MobLoot usage

This commit is contained in:
2023-04-07 13:38:09 -05:00
parent 5edbc81934
commit 460a2152c8
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -61,6 +61,8 @@ public class MobileFSM {
if (mob == null) {
return;
}
if (mob.isGuard())
awakeNPCguard(mob);
STATE state = mob.state;
switch (state) {
case Idle:
+2 -2
View File
@@ -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);