Make inventory count stats 16 bit.

This commit is contained in:
CaitSith2
2021-01-18 10:28:54 -08:00
parent a9bddea1b4
commit 7266706315
4 changed files with 21 additions and 35 deletions

View File

@@ -16,10 +16,6 @@
;--------------------------------------------------------------------------------
; $7EF423 - item counter
;--------------------------------------------------------------------------------
; $7EF424 mmkkkkkk
; m - mail counter
; k - small keys
;--------------------------------------------------------------------------------
; $7EF425w[2] 1111 2222 3333 4444
; 1 - lvl 1 sword bosses
; 2 - lvl 2 sword bosses
@@ -53,9 +49,13 @@
;--------------------------------------------------------------------------------
; $7EF432 - locations before boots
;--------------------------------------------------------------------------------
; $7EF433 - locations before mirror
; $7EF434 - locations before mirror
;--------------------------------------------------------------------------------
; $7EF434-7EF439 - free space
; $7EF436 mmkkkkkk
; m - mail counter
; k - small keys
;--------------------------------------------------------------------------------
; $7EF437-7EF439 - free space
;--------------------------------------------------------------------------------
; $7EF43A - times mirrored outdoors
;--------------------------------------------------------------------------------
@@ -324,7 +324,9 @@ RTL
DecrementItemCounter:
PHA
LDA !LOCK_STATS : BNE +
REP #$20
LDA !ITEM_TOTAL : DEC : STA !ITEM_TOTAL
SEP #$20
+
PLA
RTL
@@ -386,7 +388,7 @@ IndoorSubtileTransitionCounter:
JMP StatTransitionCounter
;--------------------------------------------------------------------------------
!CHEST_COUNTER = "$7EF442"
!MAIL_COUNTER = "$7EF424" ; mmkkkkkk
!MAIL_COUNTER = "$7EF436" ; mmkkkkkk
!BOSS_KILLS = "$7F5037"
!SWORD_KILLS_1 = "$7EF425"
!SWORD_KILLS_2 = "$7EF426"