Browse Source

Work on wordOrder iteration

combat-2
MagicBot 7 months ago
parent
commit
a7a1230f1b
  1. 10
      src/engine/gameManager/ForgeManager.java

10
src/engine/gameManager/ForgeManager.java

@ -52,9 +52,10 @@ public enum ForgeManager implements Runnable { @@ -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;
}
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 { @@ -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 { @@ -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());

Loading…
Cancel
Save