From 820b5d5357c51c96eb59950e7167ce4f98ca75ea Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Fri, 4 Sep 2020 07:30:13 -0600 Subject: [PATCH] Low stakes and high stakes chest game no longer increments item counter. --- hooks.asm | 4 ++++ rngfixes.asm | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/hooks.asm b/hooks.asm index 586ce64..53d08f4 100755 --- a/hooks.asm +++ b/hooks.asm @@ -1287,6 +1287,10 @@ JSL.l RigDigRNG ;-------------------------------------------------------------------------------- org $01EE94 ; <- EE94 - Bank01.asm : 14121 JSL.l RigChestRNG +org $01EEF5 ; <- EEF5 - Bank01.asm +JSL.l FixChestCounterForChestGame +org $01EEFD ; <- EEFD - Bank01.asm +JSL.l FixChestCounterForChestGame ;-------------------------------------------------------------------------------- org $1ED63E ; <- F563E - sprite_agahnim.asm JSL RNG_Agahnim1 diff --git a/rngfixes.asm b/rngfixes.asm index cc48dbc..4ad56a0 100644 --- a/rngfixes.asm +++ b/rngfixes.asm @@ -37,6 +37,11 @@ RTL + RTL ;-------------------------------------------------------------------------------- +FixChestCounterForChestGame: + JSL.l DecrementItemCounter + JSL $0DBA71 +RTL +;-------------------------------------------------------------------------------- RNG_Lanmolas1: LDA.b #$00 : BRA _rng_done RNG_Moldorm1: