remove refund for deranked building due to maintenance

This commit is contained in:
2024-06-26 21:09:32 -05:00
parent 802651d2d4
commit 9b0b15c31e
@@ -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
}