From 1718b55c2779ec496d943dd6f81bbf8f517a89e2 Mon Sep 17 00:00:00 2001 From: phyzical Date: Mon, 11 Apr 2022 08:10:58 +0800 Subject: [PATCH] fix for the bulk purchase --- src/Corporation/Actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Corporation/Actions.ts b/src/Corporation/Actions.ts index ecbfb2eff..20abbe0b6 100644 --- a/src/Corporation/Actions.ts +++ b/src/Corporation/Actions.ts @@ -257,7 +257,7 @@ export function BulkPurchase(corp: ICorporation, warehouse: Warehouse, material: if (isNaN(amt) || amt < 0) { throw new Error(`Invalid input amount`); } - if (amt * matSize <= maxAmount) { + if (amt > maxAmount) { throw new Error(`You do not have enough warehouse size to fit this purchase`); } const cost = amt * material.bCost;