add remote_items to Mystery.py

This commit is contained in:
Fabian Dill 2020-03-30 08:47:53 +02:00
parent 993d69cebc
commit 44086152a2
2 changed files with 8 additions and 1 deletions

View File

@ -273,7 +273,9 @@ def roll_settings(weights):
startitems = []
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):
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(itemvalue)):
startitems.append(item)
elif itemvalue:
@ -282,6 +284,8 @@ def roll_settings(weights):
startitems.append('Pegasus Boots')
ret.startinventory = ','.join(startitems)
ret.remote_items = get_choice('remote_items', weights) if 'remote_items' in weights else False
if 'rom' in weights:
romweights = weights['rom']
ret.sprite = get_choice('sprite', romweights)

View File

@ -118,6 +118,9 @@ timer:
ohko: 0
timed_countdown: 0
display: 0
remote_items: # Stores all your items on the server, effectively sending them to you as if another player picked it up
on: 0 # intended for racing, as the item information is missing from the ROM
off: 1
rom:
sprite:
random: 1