Fix random shop_shuffle_slot support.

This commit is contained in:
CaitSith2 2021-03-12 23:13:30 -08:00
parent 6e5e4fa96e
commit 28b2afe022
1 changed files with 1 additions and 1 deletions

View File

@ -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)