Browse Source

Bugfix in delay override

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

2
src/engine/gameManager/ForgeManager.java

@ -98,9 +98,9 @@ public enum ForgeManager implements Runnable {
public static void submit(WorkOrder workOrder) { public static void submit(WorkOrder workOrder) {
workOrder.workOrderID = wordOrderCounter.incrementAndGet(); workOrder.workOrderID = wordOrderCounter.incrementAndGet();
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
workOrder.slotCount = calcAvailableSlots(workOrder); workOrder.slotCount = calcAvailableSlots(workOrder);
workOrder.rollingDuration = ForgeManager.calcRollingDuration(workOrder);
// Cost to execute this workOrder // Cost to execute this workOrder

Loading…
Cancel
Save