From 6427d246a223f811b184e23c161b05ac88fddfaa Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Fri, 15 Jan 2021 01:32:51 -0800 Subject: [PATCH] Fix Take-Any caves being non deterministic --- ItemPool.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ItemPool.py b/ItemPool.py index 6e9462a9d8..d27461a2f4 100644 --- a/ItemPool.py +++ b/ItemPool.py @@ -526,10 +526,11 @@ take_any_locations = { def set_up_take_anys(world, player): + take_any_locs = take_any_locations if world.mode[player] == 'inverted': - take_any_locs = take_any_locations - {"Dark Sanctuary Hint", "Archery Game"} - else: - take_any_locs = take_any_locations + take_any_locs -= {"Dark Sanctuary Hint", "Archery Game"} + take_any_locs = list(take_any_locs) + take_any_locs.sort() regions = world.random.sample(take_any_locs, 5)