Merge pull request #208 from cassidoxa/v31.2.0-fixes

Don't increment highest mail on final stats prep
This commit is contained in:
Lexi Rose
2023-09-17 13:30:02 -05:00
committed by GitHub
2 changed files with 22 additions and 32 deletions

View File

@@ -869,7 +869,7 @@ HandleBowTracking:
; at this point. ; at this point.
LDA.w ItemReceiptMethod : CMP.b #$01 : BEQ + LDA.w ItemReceiptMethod : CMP.b #$01 : BEQ +
LDX.w CurrentSpriteSlot LDX.w CurrentSpriteSlot
LDA.w SpriteMetaData,X : BEQ + LDA.w SpriteMetaData,X : BEQ .done
BRA .done BRA .done
+ +
LDA.b #$00 LDA.b #$00

View File

@@ -340,17 +340,12 @@ JMP StatTransitionCounter
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
StatsFinalPrep: StatsFinalPrep:
PHA : PHX : PHP PHA : PHX : PHP
SEP #$30 ; set 8-bit accumulator and index registers SEP #$30
LDA.l StatsLocked : BNE .ramPostOnly LDA.l StatsLocked : BNE .ramPostOnly
INC : STA.l StatsLocked INC : STA.l StatsLocked
JSL.l IncrementFinalSword JSL.l IncrementFinalSword
LDA.l Aga2Duck : BEQ .ramPostOnly
LDA.l HighestMail : INC : STA.l HighestMail ; add green mail to mail count
LDA.l ScreenTransitions : DEC : STA.l ScreenTransitions ; remove extra transition from exiting gtower via duck LDA.l ScreenTransitions : DEC : STA.l ScreenTransitions ; remove extra transition from exiting gtower via duck
.ramPostOnly .ramPostOnly
LDA.l SwordBossKills : LSR #4 : !ADD SwordBossKills : STA.l BossKills LDA.l SwordBossKills : LSR #4 : !ADD SwordBossKills : STA.l BossKills
LDA.l SwordBossKills+1 : LSR #4 : !ADD SwordBossKills+1 : !ADD BossKills : AND.b #$0F : STA.l BossKills LDA.l SwordBossKills+1 : LSR #4 : !ADD SwordBossKills+1 : !ADD BossKills : AND.b #$0F : STA.l BossKills
@@ -365,14 +360,9 @@ StatsFinalPrep:
REP #$20 REP #$20
LDA.l TotalItemCounter : !SUB ChestsOpened : STA.l NonChestCounter LDA.l TotalItemCounter : !SUB ChestsOpened : STA.l NonChestCounter
.done .done
PLP : PLX : PLA PLP : PLX : PLA
LDA.b #$19 : STA.b GameMode ; thing we wrote over, load triforce room LDA.b #$19 : STA.b GameMode ; thing we wrote over, load triforce room
STZ.b GameSubMode STZ.b GameSubMode
STZ.b SubSubModule STZ.b SubSubModule
RTL RTL
;--------------------------------------------------------------------------------
; Notes:
; s&q counter
;================================================================================