From ec45479c52071960b2c2c44e6d47503b67de56f7 Mon Sep 17 00:00:00 2001 From: PoryGone <98504756+PoryGone@users.noreply.github.com> Date: Sat, 10 Dec 2022 22:14:04 -0500 Subject: [PATCH] SMW: Fix some stages walking Mario onto invalid tile on recomplete (#1317) If you beat a stage that was already beaten, Mario would sometimes walk onto a tile that he shouldn't. --- worlds/smw/Rom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worlds/smw/Rom.py b/worlds/smw/Rom.py index d827c124..4641141c 100644 --- a/worlds/smw/Rom.py +++ b/worlds/smw/Rom.py @@ -810,7 +810,9 @@ def patch_rom(world, rom, player, active_level_dict): # Repurpose Bonus Stars counter for Boss Token or Yoshi Eggs rom.write_bytes(0x3F1AA, bytearray([0x00] * 0x20)) - rom.write_bytes(0x20F9F, bytearray([0xEA] * 0x3B)) + + # Delete Routine that would copy Mario position data over repurposed Luigi save data + rom.write_bytes(0x20F9F, bytearray([0xEA] * 0x3D)) # Prevent Switch Palaces setting the Switch Palace flags rom.write_bytes(0x6EC9A, bytearray([0xEA, 0xEA]))