Show bombs placed in credits

This commit is contained in:
2021-07-05 17:55:36 -07:00
parent f6983cee35
commit 37b90894e3
4 changed files with 27 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
;================================================================================
; Stat Tracking
;================================================================================
; $7EF420 - $7EF468 - Stat Tracking
; $7EF420 - $7EF46F - Stat Tracking
;--------------------------------------------------------------------------------
; $7EF420 - bonk counter
;--------------------------------------------------------------------------------
@@ -139,6 +139,8 @@
;--------------------------------------------------------------------------------
; $7EF468 - chest turn counter
;--------------------------------------------------------------------------------
; $7EF46Ew[2] - bombs placed counter
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
!LOCK_STATS = "$7EF443"
@@ -332,6 +334,17 @@ IncrementChestTurnCounter:
PLA
RTL
;--------------------------------------------------------------------------------
!BOMBS_PLACED_COUNTER = "$7EF46E"
IncrementBombsPlacedCounter:
PHA
LDA !LOCK_STATS : BNE +
PHP : REP #$20
LDA !BOMBS_PLACED_COUNTER : INC : STA !BOMBS_PLACED_COUNTER
PLP
+
PLA
RTL
;--------------------------------------------------------------------------------
!CHEST_COUNTER = "$7EF442"
IncrementChestCounter:
LDA.b #$01 : STA $02E9 ; thing we wrote over