From 6fb732f4b9b7f0c901ad1c256ed4b45812bed331 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Wed, 22 Jan 2020 08:29:43 -0800 Subject: [PATCH] Use the first dice roll. (#14) --- Mystery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mystery.py b/Mystery.py index 3ad2e770..fb2cc84e 100644 --- a/Mystery.py +++ b/Mystery.py @@ -214,9 +214,9 @@ def roll_settings(weights): for item in inventoryweights.keys(): itemvalue = get_choice(item, inventoryweights) if item.startswith(('Progressive ', 'Small Key ', 'Rupee', 'Piece of Heart', 'Boss Heart Container', 'Sanctuary Heart Container', 'Arrow', 'Bombs ', 'Bomb ', 'Bottle')) and isinstance(itemvalue, int): - for i in range(int(get_choice(item, inventoryweights))): + for i in range(int(itemvalue)): startitems.append(item) - elif get_choice(item, inventoryweights): + elif itemvalue: startitems.append(item) if glitches_required in ['no_logic'] and 'Pegasus Boots' not in startitems: startitems.append('Pegasus Boots')