Browse Source

More fleshing out of workorder usage

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

5
src/engine/gameManager/ForgeManager.java

@ -83,9 +83,10 @@ public enum ForgeManager implements Runnable {
workOrder.workOrderID = wordOrderCounter.incrementAndGet(); workOrder.workOrderID = wordOrderCounter.incrementAndGet();
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; 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); workOrder.vendor.workOrders.add(workOrder);
workOrders.add(workOrder); workOrders.add(workOrder);

Loading…
Cancel
Save