From 74a368458e44b852ca5a74465888e640bb309974 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 10 Apr 2021 00:17:55 +0200 Subject: [PATCH] dynamically mark advancement technologies --- worlds/factorio/Technologies.py | 1 - worlds/factorio/__init__.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/worlds/factorio/Technologies.py b/worlds/factorio/Technologies.py index 2056dd4d..377c8f56 100644 --- a/worlds/factorio/Technologies.py +++ b/worlds/factorio/Technologies.py @@ -5,7 +5,6 @@ import Utils import logging factorio_id = 2 ** 17 - source_file = Utils.local_path("data", "factorio", "techs.json") recipe_source_file = Utils.local_path("data", "factorio", "recipes.json") with open(source_file) as f: diff --git a/worlds/factorio/__init__.py b/worlds/factorio/__init__.py index 26cf4660..0b37be12 100644 --- a/worlds/factorio/__init__.py +++ b/worlds/factorio/__init__.py @@ -9,8 +9,7 @@ static_nodes = {"automation", "logistics"} def gen_factorio(world: MultiWorld, player: int): for tech_name, tech_id in tech_table.items(): - # TODO: some techs don't need the advancement marker - tech_item = Item(tech_name, True, tech_id, player) + tech_item = Item(tech_name, tech_name in advancement_technologies, tech_id, player) tech_item.game = "Factorio" if tech_name in static_nodes: loc = world.get_location(tech_name, player)