|
|
@ -64,11 +64,18 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
// Complete this workOrder.
|
|
|
|
// Complete this workOrder.
|
|
|
|
|
|
|
|
|
|
|
|
for (Item workOrderItem : workOrder.cooking) { |
|
|
|
if (workOrder.multiple_slot_request == false) { |
|
|
|
ItemProductionMsg outMsg = new ItemProductionMsg(workOrder.vendor.building, workOrder.vendor, workOrderItem, mbEnums.ProductionActionType.CONFIRM_PRODUCE, true); |
|
|
|
|
|
|
|
DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false); |
|
|
|
// Single4 item runs are just set to complete
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Item workOrderItem : workOrder.cooking) { |
|
|
|
|
|
|
|
ItemProductionMsg outMsg = new ItemProductionMsg(workOrder.vendor.building, workOrder.vendor, workOrderItem, mbEnums.ProductionActionType.CONFIRM_PRODUCE, true); |
|
|
|
|
|
|
|
DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
persistItems(workOrder); |
|
|
|
Logger.info("workOrder has completed: " + workOrder.workOrderID); |
|
|
|
Logger.info("workOrder has completed: " + workOrder.workOrderID); |
|
|
|
ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).remove(workOrder); |
|
|
|
ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).remove(workOrder); |
|
|
|
workOrder.runCompleted = true; |
|
|
|
workOrder.runCompleted = true; |
|
|
@ -192,7 +199,7 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
// Single item rolls are msg_size of 0;
|
|
|
|
// Single item rolls are msg_size of 0;
|
|
|
|
|
|
|
|
|
|
|
|
if (availableSlots > 0 && workOrder.multiple_slot_request == 0) |
|
|
|
if (availableSlots > 0 && workOrder.multiple_slot_request == false) |
|
|
|
availableSlots = 1; |
|
|
|
availableSlots = 1; |
|
|
|
|
|
|
|
|
|
|
|
return availableSlots; |
|
|
|
return availableSlots; |
|
|
|