From 5f1ea346461bd07cd2a3ee5b47eaccab4b525cd3 Mon Sep 17 00:00:00 2001 From: aerinon Date: Wed, 17 Feb 2021 11:52:10 -0700 Subject: [PATCH] Final fix for counting hera key --- stats.asm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stats.asm b/stats.asm index 6aefd31..0b0f433 100644 --- a/stats.asm +++ b/stats.asm @@ -244,7 +244,7 @@ IncrementSmallKeysNoPrimary: LDA $1B : BEQ + ; skip room check if outdoors PHP : REP #$20 ; set 16-bit accumulator LDA $048E : CMP.w #$0087 : BNE ++ ; hera basement - PLP : PHY : LDY.b #24 : JSL.l FullInventoryExternal + PLP : PHY : LDY.b #$24 : JSL.l FullInventoryExternal JSR CountChestKey : PLY : BRA + ++ PLP @@ -264,7 +264,6 @@ RTL ;-------------------------------------------------------------------------------- CountChestKey: ; called by neighbor functions PHA : PHX - CPY #24 : BEQ + ; hera basement key CPY #$24 : BEQ + ; small key for this dungeon - use $040C CPY #$A0 : !BLT .end ; Ignore most items CPY #$AE : !BGE .end ; Ignore reserved key and generic key