From e01dc9b09c6feec6059a5bfffdf57966a475a798 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 8 Apr 2024 13:15:40 -0400 Subject: [PATCH] More fleshing out of workorder usage --- src/engine/gameManager/ForgeManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index c0193c68..d30e0a99 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -83,9 +83,10 @@ public enum ForgeManager implements Runnable { workOrder.workOrderID = wordOrderCounter.incrementAndGet(); workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; - // 0 signifies single item roll. > 0 signifies multiple item roll. + // Single item rolls are total_to_produce of 0; - workOrder.total_to_produce = Math.max(1, workOrder.total_to_produce); + if (workOrder.slotCount > 1 && workOrder.total_to_produce == 0) + workOrder.slotCount = 1; workOrder.vendor.workOrders.add(workOrder); workOrders.add(workOrder);