Browse Source

Logging on each cycle

combat-2
MagicBot 7 months ago
parent
commit
13ba31285e
  1. 1
      src/engine/gameManager/ForgeManager.java
  2. 2
      src/engine/loot/WorkOrder.java

1
src/engine/gameManager/ForgeManager.java

@ -78,6 +78,7 @@ public enum ForgeManager implements Runnable { @@ -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();

2
src/engine/loot/WorkOrder.java

@ -65,7 +65,7 @@ public class WorkOrder implements Delayed { @@ -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" +

Loading…
Cancel
Save