From e488627fcc97e20508b217fdd7ee7f4604029d97 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 2 May 2023 14:29:58 -0400 Subject: [PATCH] Slot one is reserved on arty towers. --- src/engine/objects/NPC.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index c0b5169d..76b37dd8 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -356,6 +356,12 @@ public class NPC extends AbstractCharacter { if (slot == -1) 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); // Override bind and location for this npc derived