KDL3: fix shuffled animals not actually being random (#3060)

This commit is contained in:
Silvris 2024-04-01 08:02:26 -05:00 committed by GitHub
parent f813a7005f
commit 24a03bc8b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ class KDL3World(World):
locations = [self.multiworld.get_location(spawn, self.player) for spawn in spawns]
items = [self.create_item(animal) for animal in animal_pool]
allstate = self.multiworld.get_all_state(False)
self.random.shuffle(locations)
self.random.shuffle(items)
fill_restrictive(self.multiworld, allstate, locations, items, True, True)
else:
animal_friends = animal_friend_spawns.copy()