Marking OW screens as visited

This commit is contained in:
codemann8
2023-11-08 13:50:03 -06:00
parent 3dfae76275
commit 3cbc1ab42e

View File

@@ -29,6 +29,9 @@ BCS OWDetectTransitionReturn
org $02a999 org $02a999
jsl OWEdgeTransition : nop #4 ;LDA $02A4E3,X : ORA $7EF3CA jsl OWEdgeTransition : nop #4 ;LDA $02A4E3,X : ORA $7EF3CA
org $02aa07
JSL OWMarkVisited : NOP
org $04e8ae org $04e8ae
JSL OWDetectSpecialTransition JSL OWDetectSpecialTransition
RTL : NOP RTL : NOP
@@ -340,6 +343,16 @@ OWOldManSpeed:
lda #$0c : sta $5e ; what we wrote over lda #$0c : sta $5e ; what we wrote over
rtl rtl
} }
OWMarkVisited:
{
LDX.b $8A : STZ.w $0412 ; what we wrote over
LDA.b $10 : CMP.b #$14 : BCS .return
LDA.l OverworldEventDataWRAM,X
ORA.b #$80 : STA.l OverworldEventDataWRAM,X
.return
RTL
}
LoadMapDarkOrMixed: LoadMapDarkOrMixed:
{ {