Fix corruption issue caused by bad collection rate address

This commit is contained in:
codemann8
2024-03-20 18:04:17 -05:00
parent 967bd79900
commit 67e4515bb7

2
Rom.py
View File

@@ -891,7 +891,7 @@ def patch_rom(world, rom, player, team, is_mystery=False):
rom.write_byte(cr_pc+0x1e, 0xEE) # slash
rom.write_byte(cr_pc+0x1f, thousands_bot)
# modify stat config
stat_address = 0x2397B2 # 0x23B969 - old
stat_address = 0x23978C
stat_pc = snes_to_pc(stat_address)
rom.write_byte(stat_pc, 0xa9) # change to pos 21 (from b1)
rom.write_byte(stat_pc+2, 0xc0) # change to 12 bits (from a0)