mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +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) {
|
if (corp.funds >= cost) {
|
||||||
corp.funds = corp.funds - cost;
|
corp.funds = corp.funds - cost;
|
||||||
material.stored += amt;
|
material.stored += amt;
|
||||||
|
warehouse.sizeUsed = warehouse.sizeUsed + amt * matSize;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`You cannot afford this purchase.`);
|
throw new Error(`You cannot afford this purchase.`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user