Browse Source

Multiple item workOrder work

combat-2
MagicBot 9 months ago
parent
commit
09c96c772e
  1. 4
      src/engine/gameManager/ForgeManager.java

4
src/engine/gameManager/ForgeManager.java

@ -100,9 +100,9 @@ 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));
// Single item rolls are total_to_produce of 0; // Single item rolls are msg_size of 0;
if (workOrder.slots_used > 0 && workOrder.total_to_produce == 0) if (workOrder.slots_used > 0 && workOrder.msg_size == 0)
workOrder.slots_used = 1; workOrder.slots_used = 1;
// Create in-memory items and add to collections // Create in-memory items and add to collections

Loading…
Cancel
Save