Use the first dice roll. (#14)

This commit is contained in:
CaitSith2 2020-01-22 08:29:43 -08:00 committed by Fabian Dill
parent 06ea170ecd
commit 6fb732f4b9
1 changed files with 2 additions and 2 deletions

View File

@ -214,9 +214,9 @@ def roll_settings(weights):
for item in inventoryweights.keys(): for item in inventoryweights.keys():
itemvalue = get_choice(item, inventoryweights) 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): 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) startitems.append(item)
elif get_choice(item, inventoryweights): elif itemvalue:
startitems.append(item) startitems.append(item)
if glitches_required in ['no_logic'] and 'Pegasus Boots' not in startitems: if glitches_required in ['no_logic'] and 'Pegasus Boots' not in startitems:
startitems.append('Pegasus Boots') startitems.append('Pegasus Boots')