Slot two is reserved on arty towers.
This commit is contained in:
1 parent
e488627fcc
commit
7a3e3b394b
2 files changed
+8
-6
No files matched your search
@@ -50,6 +50,14 @@ public enum BuildingManager {
|
||||
int numOfSlots = _slotLocations.get(building.meshUUID).size();
|
||||
|
||||
for (int i = 1; i <= numOfSlots; i++) {
|
||||
|
||||
// Slot two is reserved on Arty towers for the trebuchet
|
||||
|
||||
if (i == 2 &&
|
||||
building.getBlueprint() != null &&
|
||||
building.getBlueprint().getBuildingGroup().equals(BuildingGroup.ARTYTOWER))
|
||||
continue;
|
||||
|
||||
if (!building.getHirelings().containsValue(i))
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user