Work on wordOrder iteration

This commit is contained in:
2024-04-10 18:01:27 -04:00
parent df037a51f0
commit a7a1230f1b
+9 -1
View File
@@ -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;
}
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 {
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 {
// 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());