Merge pull request #1253 from Nolshine/1242_enable_smartsupply_by_default

implement #1242
This commit is contained in:
hydroflame 2021-09-14 22:06:31 -04:00 committed by GitHub
commit 22bf958e2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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