Browse Source

Comment added

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

2
src/engine/gameManager/ForgeManager.java

@ -103,6 +103,8 @@ public enum ForgeManager implements Runnable {
workOrder.production_cost = calcProductionCost(workOrder); workOrder.production_cost = calcProductionCost(workOrder);
// Set total cost for this production run
for (mbEnums.ResourceType resourceType : workOrder.production_cost.keySet()) for (mbEnums.ResourceType resourceType : workOrder.production_cost.keySet())
workOrder.production_cost.compute(resourceType, (k, resourceValue) -> resourceValue * workOrder.total_to_produce); workOrder.production_cost.compute(resourceType, (k, resourceValue) -> resourceValue * workOrder.total_to_produce);

Loading…
Cancel
Save