forked from MagicBane/Server
Loot bypass now uses agent type.
This commit is contained in:
@@ -982,8 +982,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
else if (this.building != null)
|
else if (this.building != null)
|
||||||
this.region = BuildingManager.GetRegion(this.building, bindLoc.x, bindLoc.y, bindLoc.z);
|
this.region = BuildingManager.GetRegion(this.building, bindLoc.x, bindLoc.y, bindLoc.z);
|
||||||
|
|
||||||
if (!this.behaviourType.equals(MobBehaviourType.SiegeEngine) && !this.isPlayerGuard() && contract == null)
|
this.loadInventory();
|
||||||
loadInventory();
|
|
||||||
|
|
||||||
this.updateLocation();
|
this.updateLocation();
|
||||||
}
|
}
|
||||||
@@ -1021,7 +1020,9 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
this.charItemManager.clearInventory();
|
this.charItemManager.clearInventory();
|
||||||
this.charItemManager.clearEquip();
|
this.charItemManager.clearEquip();
|
||||||
|
|
||||||
if (this.isPlayerGuard())
|
// Only generate loot for mobiles
|
||||||
|
|
||||||
|
if (!this.agentType.equals(AIAgentType.MOBILE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LootManager.GenerateMobLoot(this);
|
LootManager.GenerateMobLoot(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user