Browse Source

More workorder logic work

combat-2
MagicBot 9 months ago
parent
commit
75d520831f
  1. 5
      src/engine/gameManager/ForgeManager.java

5
src/engine/gameManager/ForgeManager.java

@ -41,8 +41,6 @@ public enum ForgeManager implements Runnable {
// if Prefix and suffix are null random roll item // if Prefix and suffix are null random roll item
// otherwise roll what was asked for // otherwise roll what was asked for
workOrder.total_to_produce = workOrder.total_to_produce - 1;
} }
if (workOrder.total_to_produce == 0) { if (workOrder.total_to_produce == 0) {
@ -57,6 +55,9 @@ public enum ForgeManager implements Runnable {
// Resubmit workOrder // Resubmit workOrder
workOrder.completionTime = System.currentTimeMillis() + 10000; workOrder.completionTime = System.currentTimeMillis() + 10000;
workOrder.total_to_produce = workOrder.total_to_produce - 1;
workOrders.add(workOrder);
Logger.info("Workorder has cycled: " + workOrder.workOrderID); Logger.info("Workorder has cycled: " + workOrder.workOrderID);
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save