diff --git a/Options.py b/Options.py index 4ba04a04..fea57b88 100644 --- a/Options.py +++ b/Options.py @@ -433,7 +433,6 @@ factorio_options: typing.Dict[str, type(Option)] = {"max_science_pack": MaxScien "tech_cost": TechCost, "free_samples": FreeSamples, "visibility": Visibility, - "random_tech_ingredients": Toggle, "starting_items": FactorioStartItems, "recipe_time": RecipeTime} diff --git a/worlds/factorio/Technologies.py b/worlds/factorio/Technologies.py index 4eb01e6e..6754f5aa 100644 --- a/worlds/factorio/Technologies.py +++ b/worlds/factorio/Technologies.py @@ -66,7 +66,7 @@ class CustomTechnology(Technology): def __init__(self, origin: Technology, world, allowed_packs: Set[str], player: int): ingredients = origin.ingredients & allowed_packs self.player = player - if world.random_tech_ingredients[player] and origin.name not in world.worlds[player].static_nodes: + if origin.name not in world.worlds[player].static_nodes: ingredients = list(ingredients) ingredients.sort() # deterministic sample ingredients = world.random.sample(ingredients, world.random.randint(1, len(ingredients)))