make Factorio rocket silo a static (and therefore local) node

This commit is contained in:
Fabian Dill
2021-06-15 15:32:40 +02:00
parent 8d08b55e69
commit d9824d26d2
4 changed files with 13 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ original_tech = technologies["{{original_tech_name}}"]
new_tree_copy = table.deepcopy(template_tech)
new_tree_copy.name = "ap-{{ tech_table[original_tech_name] }}-"{# use AP ID #}
prep_copy(new_tree_copy, original_tech)
{% if tech_cost != 1 %}
{% if tech_cost_scale != 1 %}
new_tree_copy.unit.count = math.max(1, math.floor(new_tree_copy.unit.count * {{ tech_cost_scale }}))
{% endif %}
{%- if item_name in tech_table and visibility -%}