From c26f325b0a1329d33f57f7e028455495d657c3b1 Mon Sep 17 00:00:00 2001 From: AmazingAmpharos Date: Sun, 25 Feb 2018 00:04:41 -0600 Subject: [PATCH] Smith multi-entrance fix This sets the appropriate ROM flag to allow smith to enter previously multi-entrance caves. --- Rom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rom.py b/Rom.py index 71527ab2..38cf6e30 100644 --- a/Rom.py +++ b/Rom.py @@ -297,7 +297,7 @@ def patch_rom(world, rom, hashtable, beep='normal', sprite=None): if world.keysanity: rom.write_byte(0x155C9, random.choice([0x11, 0x16])) # Randomize GT music too in keysanity mode - # patch entrance/exits/holess + # patch entrance/exits/holes for region in world.regions: for exit in region.exits: if exit.target is not None: @@ -753,6 +753,10 @@ def patch_rom(world, rom, hashtable, beep='normal', sprite=None): # temporarally we are just nopping out this check we will conver this to a rom fix soon. rom.write_bytes(0x02F539,[0xEA,0xEA,0xEA,0xEA,0xEA] if world.powder_patch_required else [0xAD, 0xBF, 0x0A, 0xF0, 0x4F]) + # allow smith into multi-entrance caves in appropriate shuffles + if world.shuffle in ['restricted', 'full', 'crossed', 'insanity']: + rom.write_byte(0x18004C, 0x01) + # set correct flag for hera basement item if world.get_location('Tower of Hera - Basement Cage').item is not None and world.get_location('Tower of Hera - Basement Cage').item.name == 'Small Key (Tower of Hera)': rom.write_byte(0x4E3BB, 0xE4)