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