CORPORATION: Remove Spring Water industry (#2240)

This commit is contained in:
catloversg
2025-07-16 15:07:55 +07:00
committed by GitHub
parent d38a0b453a
commit 477d01652b
11 changed files with 69 additions and 28 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
throw helpers.errorMessage(ctx, "You must provide a positive number");
}
const warehouse = getWarehouse(divisionName, cityName);
return upgradeWarehouseCost(warehouse, amt);
return upgradeWarehouseCost(warehouse.level, amt);
},
hasWarehouse: (ctx) => (_divisionName, _cityName) => {
checkAccess(ctx, CorpUnlockName.WarehouseAPI);