mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
dynamically mark advancement technologies
This commit is contained in:
@@ -5,7 +5,6 @@ import Utils
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
factorio_id = 2 ** 17
|
factorio_id = 2 ** 17
|
||||||
|
|
||||||
source_file = Utils.local_path("data", "factorio", "techs.json")
|
source_file = Utils.local_path("data", "factorio", "techs.json")
|
||||||
recipe_source_file = Utils.local_path("data", "factorio", "recipes.json")
|
recipe_source_file = Utils.local_path("data", "factorio", "recipes.json")
|
||||||
with open(source_file) as f:
|
with open(source_file) as f:
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ static_nodes = {"automation", "logistics"}
|
|||||||
|
|
||||||
def gen_factorio(world: MultiWorld, player: int):
|
def gen_factorio(world: MultiWorld, player: int):
|
||||||
for tech_name, tech_id in tech_table.items():
|
for tech_name, tech_id in tech_table.items():
|
||||||
# TODO: some techs don't need the advancement marker
|
tech_item = Item(tech_name, tech_name in advancement_technologies, tech_id, player)
|
||||||
tech_item = Item(tech_name, True, tech_id, player)
|
|
||||||
tech_item.game = "Factorio"
|
tech_item.game = "Factorio"
|
||||||
if tech_name in static_nodes:
|
if tech_name in static_nodes:
|
||||||
loc = world.get_location(tech_name, player)
|
loc = world.get_location(tech_name, player)
|
||||||
|
|||||||
Reference in New Issue
Block a user