From 01b7a590e70b6e0631ca675b5fb2945e1ebf1cb5 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 10 Apr 2020 20:58:52 +0200 Subject: [PATCH] add glitch_boots mystery node --- BaseClasses.py | 2 +- Mystery.py | 5 +++-- easy.yaml | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/BaseClasses.py b/BaseClasses.py index 552431b4..f33e6985 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -26,7 +26,7 @@ class World(object): for name, method in methods: if name.startswith("_debug_"): 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.players = players self.teams = 1 diff --git a/Mystery.py b/Mystery.py index 32ccf234..9b794cd6 100644 --- a/Mystery.py +++ b/Mystery.py @@ -275,12 +275,13 @@ def roll_settings(weights): 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): + itemvalue, int): for i in range(int(itemvalue)): startitems.append(item) elif itemvalue: 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') ret.startinventory = ','.join(startitems) diff --git a/easy.yaml b/easy.yaml index c4f9db5c..9e458cc3 100644 --- a/easy.yaml +++ b/easy.yaml @@ -118,6 +118,9 @@ timer: ohko: 0 timed_countdown: 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 on: 0 # intended for racing, as the item information is missing from the ROM off: 1