mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Merge pull request #3099 from TheRealMaxion/patch-1
Fixes #3098 missing space in Smart Supply
This commit is contained in:
commit
3917ef2663
@ -414,8 +414,8 @@ export function NetscriptCorporation(
|
|||||||
const cityName = helper.string("sellProduct", "cityName", acityName);
|
const cityName = helper.string("sellProduct", "cityName", acityName);
|
||||||
const enabled = helper.boolean(aenabled);
|
const enabled = helper.boolean(aenabled);
|
||||||
const warehouse = getWarehouse(divisionName, cityName);
|
const warehouse = getWarehouse(divisionName, cityName);
|
||||||
if (!hasUnlockUpgrade("SmartSupply"))
|
if (!hasUnlockUpgrade("Smart Supply"))
|
||||||
throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the SmartSupply upgrade!`);
|
throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the Smart Supply upgrade!`);
|
||||||
SetSmartSupply(warehouse, enabled);
|
SetSmartSupply(warehouse, enabled);
|
||||||
},
|
},
|
||||||
setSmartSupplyUseLeftovers: function (adivisionName: any, acityName: any, amaterialName: any, aenabled: any): void {
|
setSmartSupplyUseLeftovers: function (adivisionName: any, acityName: any, amaterialName: any, aenabled: any): void {
|
||||||
@ -426,8 +426,8 @@ export function NetscriptCorporation(
|
|||||||
const enabled = helper.boolean(aenabled);
|
const enabled = helper.boolean(aenabled);
|
||||||
const warehouse = getWarehouse(divisionName, cityName);
|
const warehouse = getWarehouse(divisionName, cityName);
|
||||||
const material = getMaterial(divisionName, cityName, materialName);
|
const material = getMaterial(divisionName, cityName, materialName);
|
||||||
if (!hasUnlockUpgrade("SmartSupply"))
|
if (!hasUnlockUpgrade("Smart Supply"))
|
||||||
throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the SmartSupply upgrade!`);
|
throw helper.makeRuntimeErrorMsg(`corporation.setSmartSupply`, `You have not purchased the Smart Supply upgrade!`);
|
||||||
SetSmartSupplyUseLeftovers(warehouse, material, enabled);
|
SetSmartSupplyUseLeftovers(warehouse, material, enabled);
|
||||||
},
|
},
|
||||||
buyMaterial: function (adivisionName: any, acityName: any, amaterialName: any, aamt: any): void {
|
buyMaterial: function (adivisionName: any, acityName: any, amaterialName: any, aamt: any): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user