|
|
@ -46,6 +46,8 @@ public enum ForgeManager implements Runnable { |
|
|
|
// otherwise roll what was asked for
|
|
|
|
// otherwise roll what was asked for
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workOrder.total_produced = workOrder.total_produced + 1; |
|
|
|
|
|
|
|
|
|
|
|
if (workOrder.total_produced >= workOrder.total_to_produce) { |
|
|
|
if (workOrder.total_produced >= workOrder.total_to_produce) { |
|
|
|
|
|
|
|
|
|
|
|
Logger.info("Workorder has completed: " + workOrder.workOrderID); |
|
|
|
Logger.info("Workorder has completed: " + workOrder.workOrderID); |
|
|
@ -58,7 +60,6 @@ public enum ForgeManager implements Runnable { |
|
|
|
// Resubmit workOrder
|
|
|
|
// Resubmit workOrder
|
|
|
|
|
|
|
|
|
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
workOrder.total_produced = workOrder.total_produced + 1; |
|
|
|
|
|
|
|
workOrders.add(workOrder); |
|
|
|
workOrders.add(workOrder); |
|
|
|
|
|
|
|
|
|
|
|
Logger.info("workOrder cycled:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")"); |
|
|
|
Logger.info("workOrder cycled:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")"); |
|
|
|