LADX: Probably fix generation error that palex had

This commit is contained in:
Mrks 2024-06-22 19:32:10 +02:00 committed by GitHub
parent d00abe7b8e
commit 60a26920e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class DroppedKey(ItemInfo):
extra = 0x01F8 extra = 0x01F8
super().__init__(room, extra) super().__init__(room, extra)
def patch(self, rom, option, *, multiworld=None): def patch(self, rom, option, *, multiworld=None):
if (option.startswith(MAP) and option != MAP) or (option.startswith(COMPASS) and option != COMPASS) or option.startswith(STONE_BEAK) or (option.startswith(NIGHTMARE_KEY) and option != NIGHTMARE_KEY )or (option.startswith(KEY) and option != KEY): if (option.startswith(MAP) and option != MAP) or (option.startswith(COMPASS) and option != COMPASS) or (option.startswith(STONE_BEAK) and option != STONE_BEAK) or (option.startswith(NIGHTMARE_KEY) and option != NIGHTMARE_KEY) or (option.startswith(KEY) and option != KEY):
if option[-1] == 'P': if option[-1] == 'P':
print(option) print(option)
if self._location.dungeon == int(option[-1]) and multiworld is None and self.room not in {0x166, 0x223}: if self._location.dungeon == int(option[-1]) and multiworld is None and self.room not in {0x166, 0x223}: