diff --git a/packages/game-engine/src/systems/infrastructureSystem.ts b/packages/game-engine/src/systems/infrastructureSystem.ts index f2d61bd..50ef3b8 100644 --- a/packages/game-engine/src/systems/infrastructureSystem.ts +++ b/packages/game-engine/src/systems/infrastructureSystem.ts @@ -238,8 +238,9 @@ export function processInfrastructure(state: GameState): InfraTickResult { let dcFlops = 0; let usedPowerKW = 0; + const repairingForDc = rackPipeline.filter(o => o.dataCenterId === dc.id && o.stage === 'repair').length; const healthyCount = dc.racks.length; - const totalInDc = dc.racks.length; + const totalInDc = dc.racks.length + repairingForDc; for (const rack of dc.racks) { const sku = RACK_SKU_CONFIGS[rack.skuId];