Browse Source

extra ToL slots

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
2e3e9ee882
  1. 2
      src/engine/gameManager/BuildingManager.java
  2. 2
      src/engine/objects/Blueprint.java

2
src/engine/gameManager/BuildingManager.java

@ -540,7 +540,7 @@ public enum BuildingManager { @@ -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())

2
src/engine/objects/Blueprint.java

@ -313,7 +313,7 @@ public class Blueprint { @@ -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)

Loading…
Cancel
Save