mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Factorio: Fix impossible seeds for rocket-part recipes as well. (#733)
This commit is contained in:
@@ -329,7 +329,7 @@ class Factorio(World):
|
|||||||
def set_custom_recipes(self):
|
def set_custom_recipes(self):
|
||||||
original_rocket_part = recipes["rocket-part"]
|
original_rocket_part = recipes["rocket-part"]
|
||||||
science_pack_pools = get_science_pack_pools()
|
science_pack_pools = get_science_pack_pools()
|
||||||
valid_pool = sorted(science_pack_pools[self.world.max_science_pack[self.player].get_max_pack()])
|
valid_pool = sorted(science_pack_pools[self.world.max_science_pack[self.player].get_max_pack()] & stacking_items)
|
||||||
self.world.random.shuffle(valid_pool)
|
self.world.random.shuffle(valid_pool)
|
||||||
while any([valid_pool[x] in fluids for x in range(3)]):
|
while any([valid_pool[x] in fluids for x in range(3)]):
|
||||||
self.world.random.shuffle(valid_pool)
|
self.world.random.shuffle(valid_pool)
|
||||||
|
Reference in New Issue
Block a user