add MakuTree_HandleDreams

This commit is contained in:
scawful
2024-07-18 21:06:51 -04:00
parent 841a321364
commit 8dc34ac433

View File

@@ -72,6 +72,8 @@ Sprite_MakuTree_Main:
dw MakuTree_SpawnHeartContainer
dw MakuTree_HasMetLink
dw MakuTree_HandleDreams
MakuTree_Handler:
{
; Check the progress flags
@@ -111,6 +113,41 @@ Sprite_MakuTree_Main:
RTS
}
MakuTree_HandleDreams:
{
; Check if Link has seen the dream
LDA.l DREAMS
CMP.b #$01 : BCC .mushroom_grotto
CMP.b #$02 : BCC .tail_palace
CMP.b #$04 : BCC .kalyxo_castle
CMP.b #$08 : BCC .zora_temple
CMP.b #$10 : BCC .glacia_estate
CMP.b #$20 : BCC .goron_mines
CMP.b #$40 : BCC .dragon_ship
RTS
; .kzt dimg
; m - Mushroom Grotto
; t - Tail Palace
; k - Kalyxo Castle
; z - Zora Temple
; i - Glacia Estate
; g - Goron Mines
; d - Dragon Ship
; CRYSTALS = $7EF37A
; TODO: Check if Link has the essence for the dream
.mushroom_grotto
.tail_palace
.kalyxo_castle
.zora_temple
.glacia_estate
.goron_mines
.dragon_ship
RTS
}
}
; =========================================================