Browse Source

remove refund for deranked building due to maintenance

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
9b0b15c31e
  1. 6
      src/engine/gameManager/MaintenanceManager.java

6
src/engine/gameManager/MaintenanceManager.java

@ -222,12 +222,6 @@ public enum MaintenanceManager { @@ -222,12 +222,6 @@ public enum MaintenanceManager {
if ((hasFunds == false) ||
((building.getRank() == 8) && !hasResources)) {
// Add cash back to strongbox for lost rank if the building isn't being destroyed
// and it's not an R8 deranking
if ((building.getRank() > 1) && (building.getRank() < 8)) {
building.setStrongboxValue(building.getStrongboxValue() + building.getBlueprint().getRankCost(Math.min(building.getRank(), 7)));
}
return false; // Early exit for having failed to meet maintenance
}

Loading…
Cancel
Save