From acf119d6a183e10f66ec668a63a0f5a4e90f68a1 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Fri, 4 Sep 2020 06:30:13 -0700 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 97e5905..a54cda4 100755 --- a/hooks.asm +++ b/hooks.asm @@ -1270,6 +1270,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 29b4596..ae1e797 100644 --- a/rngfixes.asm +++ b/rngfixes.asm @@ -36,6 +36,11 @@ RTL + RTL ;-------------------------------------------------------------------------------- +FixChestCounterForChestGame: + JSL.l DecrementItemCounter + JSL $0DBA71 +RTL +;-------------------------------------------------------------------------------- RNG_Lanmolas1: LDA.b #$00 : BRA _rng_done RNG_Moldorm1: