From 61a418fd8e0b7f8f5d9f1778abe06115d3d033df Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 07:18:55 -0400 Subject: [PATCH] Debug comment update --- src/engine/loot/WorkOrder.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index dd4b20ab..9e4bf829 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -13,6 +13,10 @@ import engine.objects.Item; import engine.objects.NPC; import org.jetbrains.annotations.NotNull; +import java.time.Duration; +import java.time.Instant; +import java.time.LocalDateTime; +import java.time.ZoneId; import java.util.ArrayList; import java.util.HashMap; import java.util.concurrent.Delayed; @@ -58,6 +62,11 @@ public class WorkOrder implements Delayed { } public String toString() { + + LocalDateTime localDateTime = Instant.ofEpochMilli(this.completionTime) + .atZone(ZoneId.systemDefault()).toLocalDateTime(); + Duration duration = Duration.ofMillis(38114000); + String outSTring = "\r\nwordOrderID: " + this.workOrderID + "\r\n" + "vendor: " + this.vendor.getObjectUUID() + "\r\n" + "slotCount: " + this.slotCount + "\r\n" + @@ -67,8 +76,8 @@ public class WorkOrder implements Delayed { "itemName: " + this.itemName + "\r\n" + "prefixToken: " + this.prefixToken + "\r\n" + "suffixToken: " + this.suffixToken + "\r\n" + - "rollingDuration: " + this.rollingDuration + "\r\n" + - "completionTime: " + this.completionTime + "\r\n" + + "rollingDuration: " + duration + "\r\n" + + "completionTime: " + localDateTime + "\r\n" + "runCompleted: " + this.runCompleted + "\r\n" + "runCanceled: " + this.runCanceled + "\r\n";