lufia2ac: prevent double checks (#3154)

This commit is contained in:
el-u 2024-04-18 18:56:32 +02:00 committed by GitHub
parent ffff63e6f3
commit 233eba6681
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ TX:
BEQ + BEQ +
JSR ReportLocationCheck JSR ReportLocationCheck
SEP #$20 SEP #$20
JML $8EC331 ; skip item get process JML $8EC2DC ; skip item get process; consider chest emptied
+: BIT.w #$4200 ; test for blue chest flag +: BIT.w #$4200 ; test for blue chest flag
BEQ + BEQ +
LDA $F02048 ; load total blue chests checked LDA $F02048 ; load total blue chests checked
@ -155,7 +155,7 @@ TX:
INC ; increment check counter INC ; increment check counter
STA $F02040 ; store check counter STA $F02040 ; store check counter
SEP #$20 SEP #$20
JML $8EC331 ; skip item get process JML $8EC2DC ; skip item get process; consider chest emptied
+: SEP #$20 +: SEP #$20
JML $8EC1EF ; continue item get process JML $8EC1EF ; continue item get process
@ -952,7 +952,7 @@ Shop:
STZ $05A9 STZ $05A9
PHB PHB
PHP PHP
JML $80A33A ; open shop menu JML $80A33A ; open shop menu (eventually causes return by reaching existing PLP : PLB : RTL at $809DB0)
+: RTL +: RTL
; shop item select ; shop item select