From 9102fe1f6cf017f5ec6f0345b2bf741ef448e2eb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 Apr 2024 13:12:49 -0400 Subject: [PATCH] Update to single item rolling config --- src/engine/gameManager/ForgeManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index b84c2ac2..76b95410 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -124,6 +124,13 @@ public enum ForgeManager implements Runnable { workOrder.slots_used = calcAvailableSlots(workOrder); workOrder.total_produced = 0; + + // Single item configuration + + if (workOrder.multiple_slot_request == false && + workOrder.total_to_produce == 0) + workOrder.total_to_produce = 1; + workOrder.total_to_produce *= workOrder.slots_used; workOrder.production_cost = calcProductionCost(workOrder);