fix: key counts again

This commit is contained in:
aerinon
2025-12-08 16:37:51 -07:00
parent fca7f214bc
commit 4437194cfe
4 changed files with 5 additions and 1 deletions

View File

@@ -253,6 +253,7 @@ ConvertToDisplay2:
CountAbsorbedKeys:
PHA : PHX
LDA.l StandingItemsOn : BEQ .count_it
LDA.w SpawnedItemKeyCounted : BNE .done
CPY.b #$24 : BEQ .count_it ; small key for this dungeon
LDA.w DungeonID : LSR : TAX
TYA : CMP.l KeyTable, X : BNE .done
@@ -262,6 +263,7 @@ CountAbsorbedKeys:
REP #$10 : JSL CountAllKey : SEP #$10
LDY.b Scrap02
.done
STZ.w SpawnedItemKeyCounted ; reset to zero for next time
PLX : PLA
JML IncrementSmallKeysNoPrimary