From 11a345dd661aff8828d50de4e432ae39b3977470 Mon Sep 17 00:00:00 2001 From: Nolshine Date: Wed, 15 Sep 2021 03:01:23 +0100 Subject: [PATCH] implement #1242 --- src/Corporation/Warehouse.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Corporation/Warehouse.ts b/src/Corporation/Warehouse.ts index 59b5a0866..59553b6f5 100644 --- a/src/Corporation/Warehouse.ts +++ b/src/Corporation/Warehouse.ts @@ -80,6 +80,11 @@ export class Warehouse { if (params.corp && params.industry) { this.updateSize(params.corp, params.industry); } + + // Default smart supply to being enabled if the upgrade is unlocked + if (params.corp?.unlockUpgrades[1]) { + this.smartSupplyEnabled = true; + } } // Re-calculate how much space is being used by this Warehouse