From a7a1230f1ba4bb816027e01a3e51628747d28dd4 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 10 Apr 2024 18:01:27 -0400 Subject: [PATCH] Work on wordOrder iteration --- src/engine/gameManager/ForgeManager.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 99342648..5f7fc732 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -52,9 +52,10 @@ public enum ForgeManager implements Runnable { // if Prefix and suffix are null random roll item // otherwise roll what was asked for + + workOrder.total_produced = workOrder.total_produced + 1; } - workOrder.total_produced = workOrder.total_produced + 1; Logger.info("item forged:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")"); if (workOrder.total_produced >= workOrder.total_to_produce) { @@ -66,6 +67,11 @@ public enum ForgeManager implements Runnable { continue; } + // Persist current items that are cooking + // after removing the negative id item from all collections. + + // Add new item to the vendors inventory + // Resubmit workOrder workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; @@ -114,6 +120,8 @@ public enum ForgeManager implements Runnable { // if Prefix and suffix are null random roll item // otherwise roll what was asked for + + workOrder.total_produced = workOrder.total_produced + 1; } Logger.info(workOrder.toString());