More slotting work.

This commit is contained in:
2023-04-04 15:13:18 -04:00
parent ee115a473d
commit 1c496b3c98
+3 -3
View File
@@ -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++)