@ -84,8 +84,10 @@ public enum ForgeManager implements Runnable {
}
public static void submit(WorkOrder workOrder) {
workOrder.workOrderID = wordOrderCounter.incrementAndGet();
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
workOrder.slotCount = calcAvailableSlots(workOrder);
// Single item rolls are total_to_produce of 0;
@ -87,7 +87,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
workOrder.suffixToken = msg.sToken;
workOrder.itemName = msg.name;
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
workOrder.slotCount = ForgeManager.calcAvailableSlots(workOrder);
workOrder.slotCount = 0;
// Validate vendor can roll this item