add glitch_boots mystery node

This commit is contained in:
Fabian Dill 2020-04-10 20:58:52 +02:00
parent 2ebc133cab
commit 01b7a590e7
3 changed files with 7 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class World(object):
for name, method in methods: for name, method in methods:
if name.startswith("_debug_"): if name.startswith("_debug_"):
setattr(self, name[7:], method) setattr(self, name[7:], method)
logging.info(f"Set {self}.{name[7:]} to {method}") logging.debug(f"Set {self}.{name[7:]} to {method}")
self.get_location = self._debug_get_location self.get_location = self._debug_get_location
self.players = players self.players = players
self.teams = 1 self.teams = 1

View File

@ -275,12 +275,13 @@ def roll_settings(weights):
itemvalue = get_choice(item, inventoryweights) itemvalue = get_choice(item, inventoryweights)
if item.startswith(('Progressive ', 'Small Key ', 'Rupee', 'Piece of Heart', 'Boss Heart Container', if item.startswith(('Progressive ', 'Small Key ', 'Rupee', 'Piece of Heart', 'Boss Heart Container',
'Sanctuary Heart Container', 'Arrow', 'Bombs ', 'Bomb ', 'Bottle')) and isinstance( 'Sanctuary Heart Container', 'Arrow', 'Bombs ', 'Bomb ', 'Bottle')) and isinstance(
itemvalue, int): itemvalue, int):
for i in range(int(itemvalue)): for i in range(int(itemvalue)):
startitems.append(item) startitems.append(item)
elif itemvalue: elif itemvalue:
startitems.append(item) startitems.append(item)
if glitches_required in ['no_logic'] and 'Pegasus Boots' not in startitems: glitch_boots = get_choice('glitch_boots', weights) if 'glitch_boots' in weights else True
if ret.logic != 'noglitches' and 'Pegasus Boots' not in startitems and glitch_boots:
startitems.append('Pegasus Boots') startitems.append('Pegasus Boots')
ret.startinventory = ','.join(startitems) ret.startinventory = ','.join(startitems)

View File

@ -118,6 +118,9 @@ timer:
ohko: 0 ohko: 0
timed_countdown: 0 timed_countdown: 0
display: 0 display: 0
glitch_boots:
on: 1 # enables that you start with Pegasus Boots in any glitched logic mode
off: 0
remote_items: # Warning: currently broken. Stores all your items on the server, effectively sending them to you as if another player picked it up remote_items: # Warning: currently broken. 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 on: 0 # intended for racing, as the item information is missing from the ROM
off: 1 off: 1