Browse Source

trainer buildings granted 3 slots at r1

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
bfb257c410
  1. 18
      src/engine/Enum.java
  2. 4
      src/engine/objects/Blueprint.java

18
src/engine/Enum.java

@ -1655,6 +1655,24 @@ public class Enum {
return extents; return extents;
} }
public boolean isTrainerBuilding(){
switch(this){
case AMAZONHALL:
case CATHEDRAL:
case GREATHALL:
case KEEP:
case THIEFHALL:
case TEMPLEHALL:
case WIZARDHALL:
case ELVENHALL:
case ELVENSANCTUM:
case IREKEIHALL:
case FORESTHALL:
return true;
}
return false;
}
} }
public enum UpdateType { public enum UpdateType {

4
src/engine/objects/Blueprint.java

@ -310,6 +310,10 @@ public class Blueprint {
// Early exit for buildings with single or no slots // Early exit for buildings with single or no slots
if(this.buildingGroup.isTrainerBuilding() && currentRank > 0){
return 3;
}
if (this.maxSlots <= 1 && this.buildingGroup.equals(BuildingGroup.TOL) == false) if (this.maxSlots <= 1 && this.buildingGroup.equals(BuildingGroup.TOL) == false)
return maxSlots; return maxSlots;

Loading…
Cancel
Save