From 81aca40605de26f16bb6485d9003b25f319e54c9 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Fri, 9 Feb 2018 20:27:34 -0500 Subject: [PATCH] only adjust exit offsets for exits that need it --- Rom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rom.py b/Rom.py index a34a5e12..51384b3b 100644 --- a/Rom.py +++ b/Rom.py @@ -316,7 +316,11 @@ def patch_rom(world, rom, hashtable, beep='normal', sprite=None): # Thanks to Zarby89 for originally finding these values # todo fix screen scrolling - if room_id == 0x0059 and world.fix_skullwoods_exit: + if exit.name in ['Eastern Palace Exit', 'Tower of Hera Exit', 'Thieves Town Exit', 'Skull Woods Final Section Exit', 'Ice Palace Exit', 'Misery Mire Exit', + 'Palace of Darkness Exit', 'Swamp Palace Exit', 'Ganons Tower Exit', 'Desert Palace Exit (North)', 'Agahnims Tower Exit', 'Spiral Cave Exit (Top)']: + # For exits that connot be reached from another, no need to apply offset fixes. + rom.write_int16_to_rom(0x15DB5 + 2 * offset, link_y) # same as final else + elif room_id == 0x0059 and world.fix_skullwoods_exit: rom.write_int16_to_rom(0x15DB5 + 2 * offset, 0x00F8) elif room_id == 0x004a and world.fix_palaceofdarkness_exit: rom.write_int16_to_rom(0x15DB5 + 2 * offset, 0x0640)