forked from MagicBane/Server
trainer buildings granted 3 slots at r1
This commit is contained in:
@@ -1655,6 +1655,24 @@ public class Enum {
|
||||
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 {
|
||||
|
||||
@@ -310,6 +310,10 @@ public class Blueprint {
|
||||
|
||||
// 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)
|
||||
return maxSlots;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user