From 13ba31285e94825e5e969107ef6d9498e37e9d86 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 07:26:39 -0400 Subject: [PATCH] Logging on each cycle --- src/engine/gameManager/ForgeManager.java | 1 + src/engine/loot/WorkOrder.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index edce8faa..96279281 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -78,6 +78,7 @@ public enum ForgeManager implements Runnable { workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; workOrders.add(workOrder); + Logger.info(workOrder.toString()); } catch (InterruptedException e) { e.printStackTrace(); diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index 9e4bf829..6bd7bf53 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -65,7 +65,7 @@ public class WorkOrder implements Delayed { LocalDateTime localDateTime = Instant.ofEpochMilli(this.completionTime) .atZone(ZoneId.systemDefault()).toLocalDateTime(); - Duration duration = Duration.ofMillis(38114000); + Duration duration = Duration.ofMillis(this.rollingDuration); String outSTring = "\r\nwordOrderID: " + this.workOrderID + "\r\n" + "vendor: " + this.vendor.getObjectUUID() + "\r\n" +