diff --git a/LockedDoorsRainstate.asm b/LockedDoorsRainstate.asm index 119bd6c..e0be014 100644 --- a/LockedDoorsRainstate.asm +++ b/LockedDoorsRainstate.asm @@ -16,6 +16,20 @@ CheckDoorlock: ; 16 bit STZ $0692 + LDA.b $20 : CMP.w #$0928 : BCC .ytoolow + CMP.w #$09A8 : BCS .ytoohigh + LDA.b $22 : CMP.w #$0810 : BCC .xtoolow + CMP.w #$0880 : BCS .xtoohigh + + LDA #$0DA4 + JSL $1BC97C ; Overworld_DrawPersistentMap16 + LDA.w #$0018 : STA $0692 + JML NotLocked + .ytoolow + .ytoohigh + .xtoolow + .xtoohigh + LDA $7EF3C5 : AND.w #$000F : BEQ .lockedDoor LDA #$0DA4 JSL $1BC97C ; Overworld_DrawPersistentMap16