Factorio: Fix Rocket Launch event getting encoded into mod

This commit is contained in:
Fabian Dill 2021-05-22 07:54:12 +02:00
parent 71bb5b850e
commit 22aa4cbb9f
4 changed files with 3 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -53,7 +53,7 @@ new_tree_copy.icon_size = table.deepcopy(technologies["{{ item_name }}"].icon_si
{#- use default AP icon if no Factorio graphics exist #}
new_tree_copy.icon = "__{{ mod_name }}__/graphics/icons/ap.png"
new_tree_copy.icons = nil
new_tree_copy.icon_size = 512
new_tree_copy.icon_size = 128
{% endif %}
{#- connect Technology #}
{%- if original_tech_name in tech_tree_layout_prerequisites %}

View File

@ -58,6 +58,7 @@ def generate_mod(world: MultiWorld, player: int):
player_names = {x: world.player_names[x][0] for x in world.player_ids}
locations = []
for location in world.get_filled_locations(player):
if location.address:
locations.append((location.name, location.item.name, location.item.player))
mod_name = f"AP-{world.seed_name}-P{player}-{world.player_names[player][0]}"
tech_cost = {0: 0.1,