Browse Source

Set variable on submit

combat-2
MagicBot 8 months ago
parent
commit
03fb180f02
  1. 1
      src/engine/gameManager/ForgeManager.java

1
src/engine/gameManager/ForgeManager.java

@ -122,6 +122,7 @@ public enum ForgeManager implements Runnable {
workOrder.production_cost_total.putAll(workOrder.production_cost); workOrder.production_cost_total.putAll(workOrder.production_cost);
workOrder.production_cost_total.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));
workOrder.total_produced = 0;
workOrder.total_to_produce *= workOrder.slots_used; workOrder.total_to_produce *= workOrder.slots_used;
// Create in-memory items and add to collections // Create in-memory items and add to collections

Loading…
Cancel
Save