Update to slotting logic.
This commit is contained in:
1 parent
14a06410ae
commit
7e64cbabf8
1 file changed
+1
-11
@@ -345,17 +345,7 @@ public enum NPCManager {
|
||||
|
||||
// Pets are regular mobiles not hirelings (Siege engines)
|
||||
|
||||
if (!abstractCharacter.getObjectType().equals(Enum.GameObjectType.Mob))
|
||||
abstractCharacter.building.getHirelings().put(abstractCharacter, buildingSlot);
|
||||
else {
|
||||
Mob mobile = (Mob) abstractCharacter;
|
||||
|
||||
// Siege engines are not hirelings but minions of said hireling.
|
||||
|
||||
if (mobile.behaviourType.equals(Enum.MobBehaviourType.SiegeEngine) ||
|
||||
mobile.behaviourType.equals(Enum.MobBehaviourType.GuardCaptain))
|
||||
abstractCharacter.building.getHirelings().put(abstractCharacter, buildingSlot);
|
||||
}
|
||||
abstractCharacter.building.getHirelings().put(abstractCharacter, buildingSlot);
|
||||
|
||||
// Override bind and location for this npc derived
|
||||
// from BuildingManager slot location data.
|
||||
|
||||
Reference in new issue
Block a user