BUGFIX: Update warehouseSizeUsed after bulk purchase (#871)

This commit is contained in:
TheAimMan 2023-10-23 04:54:43 -04:00 committed by GitHub
parent 36312c660d
commit 71e37823dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.`);
}