|
|
@@ -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:
|