From cf070e6dd97c8e6417eb9a7475d08294c9bff520 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Sun, 26 Sep 2021 14:02:19 -0700 Subject: [PATCH] Fixed non-deterministic rocket silo recipe. get_allowed_packs() was returning a list of the science packs in a non-deterministic random order, resulting in the recipe being non-deterministic. --- worlds/factorio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/factorio/__init__.py b/worlds/factorio/__init__.py index 9c08756e..de3c9811 100644 --- a/worlds/factorio/__init__.py +++ b/worlds/factorio/__init__.py @@ -272,7 +272,7 @@ class Factorio(World): if self.world.silo[self.player].value == Silo.option_randomize_recipe: valid_pool = [] - for pack in self.world.max_science_pack[self.player].get_allowed_packs(): + for pack in sorted(self.world.max_science_pack[self.player].get_allowed_packs()): valid_pool += sorted(science_pack_pools[pack]) new_recipe = self.make_balanced_recipe(recipes["rocket-silo"], valid_pool, factor=(self.world.max_science_pack[self.player].value + 1) / 7)