From e80cdc192ded633266d97cbd739364b25c5996e6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 25 Apr 2024 09:33:47 -0400 Subject: [PATCH] Update to withdraw calc --- src/engine/loot/WorkOrder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index d1e534a9..830791f1 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -192,7 +192,7 @@ public class WorkOrder implements Delayed { } else { int remainingAmount = workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) - strongbox; workOrder.vendor.building.setStrongboxValue(0); - workOrder.production_cost_total.put(mbEnums.ResourceType.GOLD, workOrder.production_cost_total.put(mbEnums.ResourceType.GOLD, workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) - remainingAmount)); + workOrder.production_cost_total.put(mbEnums.ResourceType.GOLD, workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) - remainingAmount); } // There is an overflow at this point and a warehouse is required