This commit is contained in:
Nolshine 2021-09-15 03:01:23 +01:00
parent 684a254ac8
commit 11a345dd66

@ -80,6 +80,11 @@ export class Warehouse {
if (params.corp && params.industry) { if (params.corp && params.industry) {
this.updateSize(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 // Re-calculate how much space is being used by this Warehouse