Files
alttpr-baserom/zelda.asm
Karkat 5feaf1b122 let's dev 6/20/17
(probably) fixed glitched pyramid spawn issue
fixed sanctuary purple chest spawn
added switch to allow tablets to be opened with hammer (graphics not ready but looks ok)
2017-06-20 21:55:41 -04:00

17 lines
649 B
NASM

;================================================================================
; Spawn Zelda (or not)
;--------------------------------------------------------------------------------
SpawnZelda:
LDA.l $7EF3CC : CMP #$08 : BEQ + ; don't spawn if dwarf is present
CMP #$0C : BEQ + ; don't spawn if purple chest is present
CLC : RTL
+
SEC
RTL
;--------------------------------------------------------------------------------
EndRainState:
LDA $7EF3C5 : CMP.b #$02 : !BGE + ; skip if past escape already
LDA.b #$02 : STA $7EF3C5 ; end rain state
+
RTL
;--------------------------------------------------------------------------------