This commit is contained in:
spannerisms
2021-06-24 08:36:04 -04:00
parent 49afe7ca9b
commit be0389ffbb
2 changed files with 47 additions and 0 deletions

View File

@@ -2646,3 +2646,11 @@ JSL FastCreditsCutsceneTimer
org $0EE773 org $0EE773
JSL FastTextScroll : NOP JSL FastTextScroll : NOP
;================================================================================
org $01FFEE : JSL IncrementDamageTakenCounter_Eight ; overworld pit
org $079506 : JSL IncrementDamageTakenCounter_Eight ; underworld pit
org $0780C6 : JSL IncrementDamageTakenCounter_Arb
org $07B0B1 : JSL IncrementMagicUseCounter

View File

@@ -360,6 +360,45 @@ IncrementBigChestCounter:
+ +
PLA PLA
RTL RTL
;--------------------------------------------------------------------------------
IncrementDamageTakenCounter_Eight:
STA.l $7EF36D
PHA : PHP
LDA !LOCK_STATS : BNE +
REP #$21
LDA.l !DAMAGE_COUNTER
ADC.w #$0008
STA.l !DAMAGECOUNTER
+ PLP
PLA
RTL
IncrementDamageTakenCounter_Arb:
PHP
LDA !LOCK_STATS : BNE +
REP #$21
LDA.b $00
AND.b #$00FF
ADC.l !DAMAGE_COUNTER
STA.l !DAMAGE_COUNTER
+ PLP
LDA.l $7EF36D
RTL
IncrementMagicUseCounter:
STA.l $7EF36E
PHA : PHP
LDA !LOCK_STATS : BNE +
REP #$21
LDA.b $00
AND.b #$00FF
ADC.l !MAGIC_COUNTER
STA.l !MAGIC_COUNTER
+ PLP : PLA
RTL
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
!OW_MIRROR_COUNTER = "$7EF43A" !OW_MIRROR_COUNTER = "$7EF43A"
IncrementOWMirror: IncrementOWMirror: