Browse Source

Debug comment update

combat-2
MagicBot 9 months ago
parent
commit
61a418fd8e
  1. 13
      src/engine/loot/WorkOrder.java

13
src/engine/loot/WorkOrder.java

@ -13,6 +13,10 @@ import engine.objects.Item; @@ -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 { @@ -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 { @@ -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";

Loading…
Cancel
Save