Browse Source

Update to debug strings

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

5
src/engine/gameManager/ForgeManager.java

@ -43,13 +43,12 @@ public enum ForgeManager implements Runnable {
// otherwise roll what was asked for // otherwise roll what was asked for
workOrder.total_to_produce = workOrder.total_to_produce - 1; workOrder.total_to_produce = workOrder.total_to_produce - 1;
Logger.info("Workorder popped: " + workOrder.workOrderID);
} }
if (workOrder.total_to_produce == 0) { if (workOrder.total_to_produce == 0) {
workOrder.runCompleted = true; workOrder.runCompleted = true;
Logger.info("Workorder has completed: " + workOrder.workOrderID);
// Remove this workOrder from any slots on vendor // Remove this workOrder from any slots on vendor
continue; continue;
@ -58,7 +57,7 @@ public enum ForgeManager implements Runnable {
// Resubmit workOrder // Resubmit workOrder
workOrder.completionTime = System.currentTimeMillis() + 10000; workOrder.completionTime = System.currentTimeMillis() + 10000;
Logger.info("Workorder has cycled: " + workOrder.workOrderID);
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }

Loading…
Cancel
Save