add deku butler and deku princess subtypes

This commit is contained in:
scawful
2024-06-13 12:00:31 -04:00
parent 74306f80cd
commit 5e97ef3c42

View File

@@ -52,6 +52,9 @@ Sprite_DekuScrub_Prep:
{ {
PHB : PHK : PLB PHB : PHK : PLB
LDA.w SprSubtype, X : CMP.b #$01 : BEQ .DekuButler
CMP.b #$02 : BEQ .DekuPrincess
LDA.l $7EF301 LDA.l $7EF301
BEQ .PlayIntro BEQ .PlayIntro
LDA.b #$04 : STA.w SprAction, X LDA.b #$04 : STA.w SprAction, X
@@ -59,14 +62,23 @@ Sprite_DekuScrub_Prep:
PLB PLB
RTL RTL
.DekuButler
LDA.b #$05 : STA.w SprAction, X
PLB
RTL
.DekuPrincess
LDA.b #$06 : STA.w SprAction, X
PLB
RTL
} }
; ============================================================================= ; =============================================================================
Sprite_DekuScrub_Main: Sprite_DekuScrub_Main:
{ {
LDA.w SprAction, X ; Load the SprAction LDA.w SprAction, X
JSL UseImplicitRegIndexedLocalJumpTable ; Goto the SprAction we are currently in JSL UseImplicitRegIndexedLocalJumpTable
dw EstadoInactivo dw EstadoInactivo
dw QuiereCuracion dw QuiereCuracion
@@ -118,8 +130,8 @@ Sprite_DekuScrub_Main:
LDY #$11 : STZ $02E9 ; Give the Deku Mask LDY #$11 : STZ $02E9 ; Give the Deku Mask
JSL Link_ReceiveItem JSL Link_ReceiveItem
LDA #$01 : STA.l $7EF301 LDA.b #$01 : STA.l $7EF301
LDA.b #$00 : STA $0DD0, X %GotoAction(4)
+ +
RTS RTS
} }