Bug fix for multiple item quantity (#10)

This commit is contained in:
CaitSith2
2020-01-20 17:21:48 -08:00
committed by Fabian Dill
parent 79a8123696
commit 9e88eb48d2

View File

@@ -216,7 +216,7 @@ def roll_settings(weights):
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(get_choice(item, inventoryweights))):
startitems.append(item) startitems.append(item)
if get_choice(item, inventoryweights): elif get_choice(item, inventoryweights):
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')