فهرست منبع

integration: fix co_production variable name

raylu 1 ماه پیش
والد
کامیت
228147b545
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      integration.py

+ 4 - 4
integration.py

@@ -34,10 +34,10 @@ def main() -> None:
 			companies_produced += 1
 		consumed = 0
 		for output_mat, per_run_consumption in output_mats.items():
-			if co_consumption := company.get(output_mat):
-				total_consumption = co_consumption['amount'] * per_run_consumption
-				consumed += total_consumption
-				into[output_mat] += total_consumption
+			if co_production := company.get(output_mat):
+				co_consumption = co_production['amount'] * per_run_consumption
+				consumed += co_consumption
+				into[output_mat] += co_consumption
 		if consumed > 0:
 			companies_consumed += 1
 			if co_production is None: