From 02f231af2eb5168d8d94d4c4afa057db447b4475 Mon Sep 17 00:00:00 2001 From: TheRealMaxion Date: Wed, 9 Mar 2022 01:05:00 +0100 Subject: [PATCH] Fixes #3098 missing space in Smart Supply Quick fix to stop this from erroring due to the missing space in the upgrade name. --- src/NetscriptFunctions/Corporation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NetscriptFunctions/Corporation.ts b/src/NetscriptFunctions/Corporation.ts index 365cd2aec..e20fc21bb 100644 --- a/src/NetscriptFunctions/Corporation.ts +++ b/src/NetscriptFunctions/Corporation.ts @@ -414,8 +414,8 @@ export function NetscriptCorporation( const cityName = helper.string("sellProduct", "cityName", acityName); const enabled = helper.boolean(aenabled); const warehouse = getWarehouse(divisionName, cityName); - if (!hasUnlockUpgrade("SmartSupply")) - throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the SmartSupply upgrade!`); + if (!hasUnlockUpgrade("Smart Supply")) + throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the Smart Supply upgrade!`); SetSmartSupply(warehouse, enabled); }, setSmartSupplyUseLeftovers: function (adivisionName: any, acityName: any, amaterialName: any, aenabled: any): void { @@ -426,8 +426,8 @@ export function NetscriptCorporation( const enabled = helper.boolean(aenabled); const warehouse = getWarehouse(divisionName, cityName); const material = getMaterial(divisionName, cityName, materialName); - if (!hasUnlockUpgrade("SmartSupply")) - throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the SmartSupply upgrade!`); + if (!hasUnlockUpgrade("Smart Supply")) + throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the Smart Supply upgrade!`); SetSmartSupplyUseLeftovers(warehouse, material, enabled); }, buyMaterial: function (adivisionName: any, acityName: any, amaterialName: any, aamt: any): void {