From 9b0b15c31ebc76b62ddbdb18deafa37694508229 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 26 Jun 2024 21:09:32 -0500 Subject: [PATCH] remove refund for deranked building due to maintenance --- src/engine/gameManager/MaintenanceManager.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/engine/gameManager/MaintenanceManager.java b/src/engine/gameManager/MaintenanceManager.java index 00b32d95..9c320506 100644 --- a/src/engine/gameManager/MaintenanceManager.java +++ b/src/engine/gameManager/MaintenanceManager.java @@ -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 }