diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 5f7fc732..ad5799b8 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -103,6 +103,8 @@ public enum ForgeManager implements Runnable { workOrder.production_cost = calcProductionCost(workOrder); + // Set total cost for this production run + for (mbEnums.ResourceType resourceType : workOrder.production_cost.keySet()) workOrder.production_cost.compute(resourceType, (k, resourceValue) -> resourceValue * workOrder.total_to_produce);