Add EonScrub_Defeated action

This commit is contained in:
scawful
2024-10-04 00:06:02 -04:00
parent 93454f14c5
commit cb2deb9240

View File

@@ -87,8 +87,8 @@ Sprite_EonScrub_Main:
dw EonScrub_Recoil dw EonScrub_Recoil
dw EonScrub_Dazed dw EonScrub_Dazed
dw EonScrub_Subdued dw EonScrub_Subdued
dw EonScrub_PeaShot dw EonScrub_PeaShot
dw EonScrub_Defeated
EonScrub_Stalking: EonScrub_Stalking:
{ {
@@ -185,9 +185,11 @@ Sprite_EonScrub_Main:
JSL Sprite_PlayerCantPassThrough JSL Sprite_PlayerCantPassThrough
LDA.w SprMiscD, X : BNE .no_talk LDA.w SprMiscD, X : BNE .no_talk
%ShowSolicitedMessage($12D) : BCC .no_talk
JSR DekuScrub_GiveRandomPrize
LDA.b #$01 : STA.w SprMiscD, X
%GotoAction(7)
.no_talk .no_talk
RTS RTS
} }
@@ -209,7 +211,13 @@ Sprite_EonScrub_Main:
LDA #-16 : STA.w SprYSpeed, X LDA #-16 : STA.w SprYSpeed, X
.no_damage .no_damage
RTS RTS
}
EonScrub_Defeated:
{
%PlayAnimation(0,1,16)
JSL Sprite_CheckIfLifted
JSL ThrownSprite_TileAndSpriteInteraction_long
RTS RTS
} }
} }
@@ -242,7 +250,6 @@ Sprite_EonScrub_Draw:
.nextTile .nextTile
PHX ; Save current Tile Index? PHX ; Save current Tile Index?
TXA : CLC : ADC $06 ; Add Animation Index Offset TXA : CLC : ADC $06 ; Add Animation Index Offset
PHA ; Keep the value with animation index offset? PHA ; Keep the value with animation index offset?
@@ -270,20 +277,15 @@ Sprite_EonScrub_Draw:
LDA .properties, X : STA ($90), Y LDA .properties, X : STA ($90), Y
PHY PHY
TYA : LSR #2 : TAY TYA : LSR #2 : TAY
LDA .sizes, X : ORA $0F : STA ($92), Y ; store size in oam buffer LDA .sizes, X : ORA $0F : STA ($92), Y ; store size in oam buffer
PLY : INY PLY : INY
PLX : DEX : BPL .nextTile PLX : DEX : BPL .nextTile
PLX PLX
RTS RTS
; ========================================================= ; =========================================================
.start_index .start_index