dynamically mark advancement technologies
This commit is contained in:
parent
1b70d485c0
commit
74a368458e
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue