Merge pull request #119 from cassidoxa/entrances

Revert "Update entrances.asm"
This commit is contained in:
KatDevsGames
2021-05-22 13:11:59 -05:00
committed by GitHub

View File

@@ -4,7 +4,9 @@
;--------------------------------------------------------------------------------
LockAgahnimDoors:
LDA.l AgahnimDoorStyle : AND.w #$00FF
BEQ .exit ; don't need to load 0, because we'd have it if we reached here
BNE +
;#$0 = Never Locked
LDA.w #$0000 : RTL
+ : CMP.w #$0001 : BNE +
LDA $7EF3C5 : AND.w #$000F : CMP.w #$0002 : !BGE .unlock ; if we rescued zelda, skip
JSR.w LockAgahnimDoorsCore : RTL
@@ -35,7 +37,7 @@ LockAgahnimDoors:
.unlock
LDA.w #$0000 ; fallback to never locked
.exit
RTL
;--------------------------------------------------------------------------------
LockAgahnimDoorsCore:
@@ -202,14 +204,14 @@ RTL
AnimatedEntranceFix: ;when an entrance animation tries to start
PHA
LDA.l InvertedMode : BEQ + ;If we are in inverted mode
PLA
BIT $8A : BVS ++ ; and in the light world
LDA $8A : AND.b #$40 : BNE + ;and in the light world
PLA
STZ $04C6 ; skip it.
LDA #$00
RTL
+
PLA
++ STA $02E4 ;what we wrote over
STA $02E4 ;what we wrote over
STA $0FC1 ;what we wrote over
STA $0710 ;what we wrote over
RTL