Add bombs-placed counter to stat screen

This commit is contained in:
2021-07-05 17:33:19 -07:00
parent b8545ca055
commit d4e1337471
4 changed files with 25 additions and 11 deletions

View File

@@ -118,7 +118,7 @@
;--------------------------------------------------------------------------------
; $7EF46D - chest turn counter
;--------------------------------------------------------------------------------
; $7EF46E - 7EF49F - Free space
; $7EF46Ew[2] - bombs placed counter
;--------------------------------------------------------------------------------
; $7EF4A0 - 7EF4A7 - Service Request
;--------------------------------------------------------------------------------
@@ -334,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