From 2e3e9ee882da2d588a6f2c5dbf6e078dfc673acd Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 23 Jun 2024 19:50:20 -0500 Subject: [PATCH] extra ToL slots --- src/engine/gameManager/BuildingManager.java | 2 +- src/engine/objects/Blueprint.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index a938eb62..8ffb618b 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -540,7 +540,7 @@ public enum BuildingManager { int maxSlots = building.getBlueprint().getMaxSlots(); if(building.getBlueprint().getBuildingGroup() != null) { - building.getBlueprint().getSlotsForRank(building.getRank()); + maxSlots = building.getBlueprint().getSlotsForRank(building.getRank()); } if (maxSlots == building.getHirelings().size()) diff --git a/src/engine/objects/Blueprint.java b/src/engine/objects/Blueprint.java index 6b3ec844..781871ac 100644 --- a/src/engine/objects/Blueprint.java +++ b/src/engine/objects/Blueprint.java @@ -313,7 +313,7 @@ public class Blueprint { // Early exit for buildings with single or no slots - if (this.maxSlots <= 1) + if (this.maxSlots <= 1 && !this.buildingGroup.equals(BuildingGroup.TOL)) return maxSlots; if (this.maxRank == 1 && currentRank == 1)