|
|
|
@ -40,7 +40,7 @@ public enum ForgeManager implements Runnable {
@@ -40,7 +40,7 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
if (workOrder.runCanceled || workOrder.runCompleted) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
// Fulfill workOrder
|
|
|
|
|
// Create negative ID items to add to collections
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < workOrder.slotCount; ++i) { |
|
|
|
|
|
|
|
|
@ -94,8 +94,18 @@ public enum ForgeManager implements Runnable {
@@ -94,8 +94,18 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
if (workOrder.slotCount > 0 && workOrder.total_to_produce == 0) |
|
|
|
|
workOrder.slotCount = 1; |
|
|
|
|
|
|
|
|
|
Logger.info(workOrder.toString()); |
|
|
|
|
// Create negative ID items to add to collections
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < workOrder.slotCount; ++i) { |
|
|
|
|
|
|
|
|
|
// Create workOrder items; one for each slot
|
|
|
|
|
// assigned to this workOrder.
|
|
|
|
|
|
|
|
|
|
// if Prefix and suffix are null random roll item
|
|
|
|
|
// otherwise roll what was asked for
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Logger.info(workOrder.toString()); |
|
|
|
|
workOrder.vendor.workOrders.add(workOrder); |
|
|
|
|
workOrders.add(workOrder); |
|
|
|
|
} |
|
|
|
|