Browse Source

Minor class cleanup

combat-2
MagicBot 7 months ago
parent
commit
ba4648f812
  1. 14
      src/engine/gameManager/ForgeManager.java

14
src/engine/gameManager/ForgeManager.java

@ -40,7 +40,7 @@ public enum ForgeManager implements Runnable {
if (workOrder.runCanceled || workOrder.runCompleted) if (workOrder.runCanceled || workOrder.runCompleted)
continue; continue;
// Fulfill workOrder // Create negative ID items to add to collections
for (int i = 0; i < workOrder.slotCount; ++i) { for (int i = 0; i < workOrder.slotCount; ++i) {
@ -94,8 +94,18 @@ public enum ForgeManager implements Runnable {
if (workOrder.slotCount > 0 && workOrder.total_to_produce == 0) if (workOrder.slotCount > 0 && workOrder.total_to_produce == 0)
workOrder.slotCount = 1; 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); workOrder.vendor.workOrders.add(workOrder);
workOrders.add(workOrder); workOrders.add(workOrder);
} }

Loading…
Cancel
Save