From 3c704d6b859a7185cf36ed7fd063ea547052abe8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 09:22:23 -0400 Subject: [PATCH] Multiple item workOrder work --- src/engine/gameManager/ForgeManager.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index f169ffe3..db618591 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -100,11 +100,6 @@ public enum ForgeManager implements Runnable { workOrder.production_cost_total.putAll(workOrder.production_cost); workOrder.production_cost_total.forEach((key, value) -> workOrder.production_cost_total.compute(key, (k, v) -> v * workOrder.total_to_produce)); - // Single item rolls are msg_size of 0; - - if (workOrder.slots_used > 0 && workOrder.msg_size == 0) - workOrder.slots_used = 1; - workOrder.total_to_produce *= workOrder.slots_used; // Create in-memory items and add to collections @@ -178,9 +173,9 @@ public enum ForgeManager implements Runnable { for (WorkOrder npcWorkOrder : workOrder.vendor.workOrders) availableSlots = availableSlots - npcWorkOrder.slots_used; - // Slot count override for single item production + // Single item rolls are msg_size of 0; - if (workOrder.total_to_produce == 0 && availableSlots > 1) + if (workOrder.slots_used > 0 && workOrder.msg_size == 0) availableSlots = 1; return availableSlots;