From 74c50cc70eaffdd123297372030329bf4f99810d Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Sat, 24 Mar 2018 13:18:14 -0400 Subject: [PATCH] Add the auto auto-equip silvers at ganon feature Used in easy, and to avoid a minor bug that can occur in retro --- Rom.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rom.py b/Rom.py index 80d8f050..ce506410 100644 --- a/Rom.py +++ b/Rom.py @@ -541,6 +541,13 @@ def patch_rom(world, rom, hashtable, beep='normal', color='red', sprite=None): else: overflow_replacement = GREEN_TWENTY_RUPEES + if world.difficulty in ['easy']: + rom.write_byte(0x180181, 0x03) # auto equip silvers on pickup and at ganon + elif world.retro and world.difficulty in ['hard','expert', 'insane']: #FIXME: this is temporary for v29 baserom + rom.write_byte(0x180181, 0x03) # auto equip silvers on pickup and at ganon + else: + rom.write_byte(0x180181, 0x01) # auto equip silvers on pickup + #Byrna residual magic cost rom.write_bytes(0x45C42, [0x04, 0x02, 0x01])