Browse Source

workerOrder cost updating

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

2
src/engine/gameManager/ForgeManager.java

@ -106,7 +106,7 @@ public enum ForgeManager implements Runnable { @@ -106,7 +106,7 @@ public enum ForgeManager implements Runnable {
// Set total cost for this production run
workOrder.production_cost_total.putAll(workOrder.production_cost);
workOrder.production_cost.forEach((key, value) -> workOrder.production_cost_total.compute(key, (k, v) -> v * workOrder.total_to_produce));
workOrder.production_cost_total.forEach((key, value) -> workOrder.production_cost_total.compute(key, (k, v) -> v * workOrder.total_to_produce));
// Single item rolls are total_to_produce of 0;

Loading…
Cancel
Save