dynamically mark advancement technologies

This commit is contained in:
Fabian Dill 2021-04-10 00:17:55 +02:00
parent 1b70d485c0
commit 74a368458e
2 changed files with 1 additions and 3 deletions

View File

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

View File

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