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.
This commit is contained in:
PoryGone 2022-12-10 22:14:04 -05:00 committed by GitHub
parent aee0df5359
commit ec45479c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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]))