allow 'random' shop_shuffle_slots
This commit is contained in:
parent
a331c397aa
commit
6e5e4fa96e
|
@ -547,8 +547,11 @@ def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("b
|
||||||
|
|
||||||
# change minimum to required pieces to avoid problems
|
# change minimum to required pieces to avoid problems
|
||||||
ret.triforce_pieces_available = min(max(ret.triforce_pieces_required, int(ret.triforce_pieces_available)), 90)
|
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')
|
||||||
ret.shop_shuffle_slots = int(get_choice('shop_shuffle_slots', weights, '0'))
|
if shuffle_slots.lower() == "random":
|
||||||
|
ret.shop_shuffle_slots = random.randint(0, 30)
|
||||||
|
else:
|
||||||
|
ret.shop_shuffle_slots = int(shuffle_slots)
|
||||||
|
|
||||||
ret.shop_shuffle = get_choice('shop_shuffle', weights, '')
|
ret.shop_shuffle = get_choice('shop_shuffle', weights, '')
|
||||||
if not ret.shop_shuffle:
|
if not ret.shop_shuffle:
|
||||||
|
|
Loading…
Reference in New Issue