Work on wordOrder iteration
This commit is contained in:
@@ -52,9 +52,10 @@ public enum ForgeManager implements Runnable {
|
|||||||
|
|
||||||
// if Prefix and suffix are null random roll item
|
// if Prefix and suffix are null random roll item
|
||||||
// otherwise roll what was asked for
|
// 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 + ")");
|
Logger.info("item forged:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")");
|
||||||
|
|
||||||
if (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;
|
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
|
// Resubmit workOrder
|
||||||
|
|
||||||
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
|
||||||
@@ -114,6 +120,8 @@ public enum ForgeManager implements Runnable {
|
|||||||
|
|
||||||
// if Prefix and suffix are null random roll item
|
// if Prefix and suffix are null random roll item
|
||||||
// otherwise roll what was asked for
|
// otherwise roll what was asked for
|
||||||
|
|
||||||
|
workOrder.total_produced = workOrder.total_produced + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.info(workOrder.toString());
|
Logger.info(workOrder.toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user