Browse Source

Update to single item rolling config

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

7
src/engine/gameManager/ForgeManager.java

@ -124,6 +124,13 @@ public enum ForgeManager implements Runnable {
workOrder.slots_used = calcAvailableSlots(workOrder); workOrder.slots_used = calcAvailableSlots(workOrder);
workOrder.total_produced = 0; workOrder.total_produced = 0;
// Single item configuration
if (workOrder.multiple_slot_request == false &&
workOrder.total_to_produce == 0)
workOrder.total_to_produce = 1;
workOrder.total_to_produce *= workOrder.slots_used; workOrder.total_to_produce *= workOrder.slots_used;
workOrder.production_cost = calcProductionCost(workOrder); workOrder.production_cost = calcProductionCost(workOrder);

Loading…
Cancel
Save