From a461341c64ab9ef44e518ae999e8587582edc89b Mon Sep 17 00:00:00 2001 From: AmazingAmpharos Date: Mon, 29 Jan 2018 19:46:16 -0600 Subject: [PATCH] Initial equipment handling Properly sets the initial equipment parameters to the defaults established in v28. --- Rom.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Rom.py b/Rom.py index f5204780..a8e2f9f7 100644 --- a/Rom.py +++ b/Rom.py @@ -653,9 +653,15 @@ def patch_rom(world, rom, hashtable, beep='normal', sprite=None): rom.write_byte(0x180086, 0x00 if world.aga_randomness else 0x01) # set blue ball and ganon warp randomness rom.write_byte(0x1800A0, 0x01) # return to light world on s+q without mirror rom.write_byte(0x1800A1, 0x01) # enable overworld screen transition draining for water level inside swamp - rom.write_byte(0x180034, 0x0A) # starting max bombs - rom.write_byte(0x180035, 30) # starting max bombs rom.write_byte(0x180174, 0x01 if world.fix_fake_world else 0x00) + rom.write_byte(0x180034, 0x0A) # starting max bombs + rom.write_byte(0x180035, 30) # starting max arrows + for x in range(0x183000, 0x18304F): + rom.write_byte(x, 0) # Zero the initial equipment array + rom.write_byte(0x18302C, 0x18) # starting max health + rom.write_byte(0x18302D, 0x18) # starting current health + rom.write_byte(0x183039, 0x68) # starting abilities, bit array + if world.goal in ['pedestal', 'triforcehunt']: rom.write_byte(0x18003E, 0x01) # make ganon invincible