|
|
@ -130,11 +130,11 @@ public enum ForgeManager implements Runnable { |
|
|
|
if (!workOrder.multiple_slot_request && workOrder.total_to_produce == 0) |
|
|
|
if (!workOrder.multiple_slot_request && workOrder.total_to_produce == 0) |
|
|
|
workOrder.total_to_produce = 1; |
|
|
|
workOrder.total_to_produce = 1; |
|
|
|
|
|
|
|
|
|
|
|
workOrder.total_to_produce *= workOrder.slots_used; |
|
|
|
|
|
|
|
workOrder.production_cost = calcProductionCost(workOrder); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Set total cost for this production run
|
|
|
|
// Set total cost for this production run
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workOrder.total_to_produce *= workOrder.slots_used; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workOrder.production_cost = calcProductionCost(workOrder); |
|
|
|
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.put(key, value * workOrder.total_to_produce)); |
|
|
|
workOrder.production_cost_total.forEach((key, value) -> workOrder.production_cost_total.put(key, value * workOrder.total_to_produce)); |
|
|
|
|
|
|
|
|
|
|
|