add remote_items to Mystery.py
This commit is contained in:
parent
993d69cebc
commit
44086152a2
|
@ -273,7 +273,9 @@ def roll_settings(weights):
|
||||||
startitems = []
|
startitems = []
|
||||||
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(itemvalue)):
|
for i in range(int(itemvalue)):
|
||||||
startitems.append(item)
|
startitems.append(item)
|
||||||
elif itemvalue:
|
elif itemvalue:
|
||||||
|
@ -282,6 +284,8 @@ def roll_settings(weights):
|
||||||
startitems.append('Pegasus Boots')
|
startitems.append('Pegasus Boots')
|
||||||
ret.startinventory = ','.join(startitems)
|
ret.startinventory = ','.join(startitems)
|
||||||
|
|
||||||
|
ret.remote_items = get_choice('remote_items', weights) if 'remote_items' in weights else False
|
||||||
|
|
||||||
if 'rom' in weights:
|
if 'rom' in weights:
|
||||||
romweights = weights['rom']
|
romweights = weights['rom']
|
||||||
ret.sprite = get_choice('sprite', romweights)
|
ret.sprite = get_choice('sprite', romweights)
|
||||||
|
|
|
@ -118,6 +118,9 @@ timer:
|
||||||
ohko: 0
|
ohko: 0
|
||||||
timed_countdown: 0
|
timed_countdown: 0
|
||||||
display: 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:
|
rom:
|
||||||
sprite:
|
sprite:
|
||||||
random: 1
|
random: 1
|
||||||
|
|
Loading…
Reference in New Issue