|
|
|
@ -83,9 +83,10 @@ public enum ForgeManager implements Runnable {
@@ -83,9 +83,10 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
workOrder.workOrderID = wordOrderCounter.incrementAndGet(); |
|
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
|
|
|
|
|
|
// 0 signifies single item roll. > 0 signifies multiple item roll.
|
|
|
|
|
// Single item rolls are total_to_produce of 0;
|
|
|
|
|
|
|
|
|
|
workOrder.total_to_produce = Math.max(1, workOrder.total_to_produce); |
|
|
|
|
if (workOrder.slotCount > 1 && workOrder.total_to_produce == 0) |
|
|
|
|
workOrder.slotCount = 1; |
|
|
|
|
|
|
|
|
|
workOrder.vendor.workOrders.add(workOrder); |
|
|
|
|
workOrders.add(workOrder); |
|
|
|
|