From 12d7459a60dd6d00762b823b9ddf1cc3e252172a Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Sun, 25 Aug 2019 22:28:12 -0400 Subject: [PATCH] Implement progressive bow limit --- Rom.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Rom.py b/Rom.py index f7e0e1b2..d79b84a8 100644 --- a/Rom.py +++ b/Rom.py @@ -657,20 +657,17 @@ def patch_rom(world, player, rom): difficulty = world.difficulty_requirements - if difficulty.progressive_bow_limit < 2 and world.swords == 'swordless': - # TODO: write 2 to progressive bow limit byte - rom.write_byte(0x180181, 0x01) # Make silver arrows work on on ganon - else: - # TODO: write difficulty.progressive_bow_limit to progressive bow limit byte - pass - - #Set overflow items for progressive equipment rom.write_bytes(0x180090, [difficulty.progressive_sword_limit, overflow_replacement, difficulty.progressive_shield_limit, overflow_replacement, difficulty.progressive_armor_limit, overflow_replacement, - difficulty.progressive_bottle_limit, overflow_replacement]) + difficulty.progressive_bottle_limit, overflow_replacement, + difficulty.progressive_bow_limit, overflow_replacement]) + + if difficulty.progressive_bow_limit < 2 and world.swords == 'swordless': + rom.write_bytes(0x180098, [2, overflow_replacement]) + rom.write_byte(0x180181, 0x01) # Make silver arrows work only on ganon # set up game internal RNG seed for i in range(1024):