Factorio: fix uranium-ore recipe writing to mod

This commit is contained in:
Fabian Dill 2021-07-06 23:55:30 +02:00
parent 22d45b9571
commit 1b5525a8c5
1 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,9 @@ table.insert(new_tree_copy.prerequisites, "ap-{{ tech_table[prerequesite] }}-")
data:extend{new_tree_copy} data:extend{new_tree_copy}
{% endfor %} {% endfor %}
{% if recipe_time_scale %} {% if recipe_time_scale %}
{%- for recipe in recipes %} {%- for recipe_name, recipe in recipes.items() %}
adjust_energy("{{ recipe }}", {{ random.triangular(*recipe_time_scale) }}) {%- if recipe.category != "mining" %}
adjust_energy("{{ recipe_name }}", {{ random.triangular(*recipe_time_scale) }})
{%- endif %}
{%- endfor -%} {%- endfor -%}
{% endif %} {% endif %}