From f6d857b5b56daf783dd96b7f772c5c758c762212 Mon Sep 17 00:00:00 2001 From: espeon65536 <81029175+espeon65536@users.noreply.github.com> Date: Tue, 10 May 2022 22:12:26 -0400 Subject: [PATCH] Core: make progression balancing deterministic (#295) --- Fill.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Fill.py b/Fill.py index 9f5b62ec..7bbeb18b 100644 --- a/Fill.py +++ b/Fill.py @@ -404,7 +404,9 @@ def balance_multiworld_progression(world: MultiWorld) -> None: items_to_replace: typing.List[Location] = [] for player in balancing_players: locations_to_test = unlocked_locations[player] - items_to_test = candidate_items[player] + items_to_test = list(candidate_items[player]) + items_to_test.sort() + world.random.shuffle(items_to_test) while items_to_test: testing = items_to_test.pop() reducing_state = state.copy()