mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Factorio: remove option to turn off random_tech_ingredients
This commit is contained in:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user