mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 20:55:44 +01:00
BUGFIX: Update warehouseSizeUsed after bulk purchase (#871)
This commit is contained in:
parent
36312c660d
commit
71e37823dd
@ -312,6 +312,7 @@ export function BulkPurchase(
|
||||
if (corp.funds >= cost) {
|
||||
corp.funds = corp.funds - cost;
|
||||
material.stored += amt;
|
||||
warehouse.sizeUsed = warehouse.sizeUsed + amt * matSize;
|
||||
} else {
|
||||
throw new Error(`You cannot afford this purchase.`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user