Browse Source

Tol can now support 4 max slost at r7/8

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
96c1e34a08
  1. 10
      src/engine/objects/Blueprint.java

10
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) == false)
return maxSlots;
if (this.maxRank == 1 && currentRank == 1)
@ -328,20 +328,22 @@ public class Blueprint { @@ -328,20 +328,22 @@ public class Blueprint {
case 3:
case 4:
case 5:
case 6:
availableSlots = 2;
break;
case 6:
case 7:
availableSlots = 3;
break;
case 8:
availableSlots = 1;
availableSlots = 3;
break;
default:
availableSlots = 0;
break;
}
if(this.buildingGroup.equals(BuildingGroup.TOL)){
availableSlots += 1;
}
return availableSlots;
}

Loading…
Cancel
Save