From 1c496b3c98b20ec79499e6039f4331b043b3feed Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 4 Apr 2023 15:13:18 -0400 Subject: [PATCH] More slotting work. --- src/engine/objects/NPC.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index a1de9fa6..065ce95b 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -361,10 +361,10 @@ public class NPC extends AbstractCharacter { // Artillery Tower Captains use a hardcoded slot not first available - if (this.contract != null && this.contract.getContractID() == 850) + if (this.contract != null && this.contract.getContractID() == 842) this.building.getHirelings().put(this, 2); else - slotMobInBuilding(); + slotNPCinBuilding(); // picks first available free slot } //TODO set these correctly later @@ -382,7 +382,7 @@ public class NPC extends AbstractCharacter { this.charItemManager.load(); } - private void slotMobInBuilding() { + private void slotNPCinBuilding() { int maxSlots = 10; for (int slot = 1; slot < maxSlots + 1; slot++)