update wolfos mini boss
This commit is contained in:
@@ -72,10 +72,11 @@ Sprite_Wolfos_Prep:
|
|||||||
|
|
||||||
Sprite_Wolfos_CheckIfDefeated:
|
Sprite_Wolfos_CheckIfDefeated:
|
||||||
{
|
{
|
||||||
LDA.w SprHealth, X : BNE .not_defeated
|
LDA.w SprHealth, X : CMP.b #$10 : BCS .not_defeated
|
||||||
LDA.b #$06 : STA SprAction, X ; Set to defeated
|
LDA.b #$06 : STA SprAction, X ; Set to defeated
|
||||||
LDA.b #$09 : STA SprState, X
|
LDA.b #$09 : STA SprState, X
|
||||||
LDA.b #$40 : STA SprHealth, X ; Refill the health of the sprite
|
LDA.b #$40 : STA SprHealth, X ; Refill the health of the sprite
|
||||||
|
STZ.w SprMiscD, X
|
||||||
RTS
|
RTS
|
||||||
.not_defeated
|
.not_defeated
|
||||||
RTS
|
RTS
|
||||||
@@ -266,17 +267,20 @@ Sprite_Wolfos_Main:
|
|||||||
STZ.w SprXSpeed, X
|
STZ.w SprXSpeed, X
|
||||||
STZ.w SprYSpeed, X
|
STZ.w SprYSpeed, X
|
||||||
|
|
||||||
|
JSL Sprite_DamageFlash_Long
|
||||||
|
JSL Sprite_PlayerCantPassThrough
|
||||||
|
|
||||||
; Run the dialogue and wait for a song of healing flag to be set
|
; Run the dialogue and wait for a song of healing flag to be set
|
||||||
LDA SprMiscD, X : BEQ .wait
|
LDA SprMiscD, X : BNE .wait
|
||||||
%ShowSolicitedMessage($20) : BCC .no_hablaba
|
%ShowUnconditionalMessage($20)
|
||||||
LDA.b #$01 : STA SprMiscD, X
|
LDA.b #$01 : STA SprMiscD, X
|
||||||
.wait
|
.wait
|
||||||
LDA $FE : BEQ .ninguna_cancion
|
LDA $FE : BEQ .ninguna_cancion
|
||||||
STZ $FE
|
STZ $FE
|
||||||
LDA.b #$C0 : STA.w SprTimerD, X
|
LDA.b #$40 : STA.w SprTimerD, X
|
||||||
%GotoAction(7)
|
%GotoAction(7)
|
||||||
.ninguna_cancion
|
.ninguna_cancion
|
||||||
.no_hablaba
|
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -284,13 +288,17 @@ Sprite_Wolfos_Main:
|
|||||||
{
|
{
|
||||||
%PlayAnimation(0, 0, 10)
|
%PlayAnimation(0, 0, 10)
|
||||||
|
|
||||||
LDY #$13 : STZ $02E9 ; Give the Wolf Mask
|
JSL Sprite_PlayerCantPassThrough
|
||||||
|
|
||||||
|
LDY #$3A : STZ $02E9 ; Give the Wolf Mask
|
||||||
JSL Link_ReceiveItem
|
JSL Link_ReceiveItem
|
||||||
|
LDA.b #$01 : STA.l $7EF358
|
||||||
LDA #$01 : STA.l $7EF303 ; Set the special flag
|
LDA #$01 : STA.l $7EF303 ; Set the special flag
|
||||||
|
|
||||||
LDA SprTimerD, X : BEQ .no_dialogue
|
|
||||||
LDA.b #$06 : STA $0DD0, X ; kill sprite normal style
|
LDA.b #$06 : STA $0DD0, X ; kill sprite normal style
|
||||||
.no_dialogue
|
STZ.w SprAction, X
|
||||||
|
STZ.w SprHealth, X
|
||||||
|
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user