From 28b2afe0225c8ecbf3e2da499d26627432153e4a Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Fri, 12 Mar 2021 23:13:30 -0800 Subject: [PATCH] Fix random shop_shuffle_slot support. --- Mystery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mystery.py b/Mystery.py index c980d5c0..c3c8ff44 100644 --- a/Mystery.py +++ b/Mystery.py @@ -548,7 +548,7 @@ def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("b # change minimum to required pieces to avoid problems ret.triforce_pieces_available = min(max(ret.triforce_pieces_required, int(ret.triforce_pieces_available)), 90) shuffle_slots = get_choice('shop_shuffle_slots', weights, '0') - if shuffle_slots.lower() == "random": + if str(shuffle_slots).lower() == "random": ret.shop_shuffle_slots = random.randint(0, 30) else: ret.shop_shuffle_slots = int(shuffle_slots)