Slot one is reserved on arty towers.

This commit is contained in:
2023-05-02 14:29:58 -04:00
parent 82aeba3a05
commit e488627fcc
+6
View File
@@ -356,6 +356,12 @@ public class NPC extends AbstractCharacter {
if (slot == -1) if (slot == -1)
Logger.error("No available slot for NPC: " + this.getObjectUUID()); Logger.error("No available slot for NPC: " + this.getObjectUUID());
// Slot one is reserved on Arty towers for the trebuchet
if (building.getBlueprint() != null &&
building.getBlueprint().getBuildingGroup().equals(BuildingGroup.ARTYTOWER))
slot = slot + 1;
building.getHirelings().put(this, slot); building.getHirelings().put(this, slot);
// Override bind and location for this npc derived // Override bind and location for this npc derived