From af53859ba92aed193cd1ca27745cd877c3061fb0 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 11 Apr 2024 13:46:24 -0400 Subject: [PATCH] Comment added --- src/engine/gameManager/ForgeManager.java | 2 ++ 1 file changed, 2 insertions(+) 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);