fix wolf mask grant item bug
This commit is contained in:
@@ -154,6 +154,7 @@ Sprite_Wolfos_Main:
|
|||||||
dw Wolfos_AttackLeft ; 0x05
|
dw Wolfos_AttackLeft ; 0x05
|
||||||
dw Wolfos_Subdued ; 0x06
|
dw Wolfos_Subdued ; 0x06
|
||||||
dw Wolfos_GrantMask ; 0x07
|
dw Wolfos_GrantMask ; 0x07
|
||||||
|
dw Wolfos_Dismiss ; 0x08
|
||||||
|
|
||||||
Wolfos_AttackForward:
|
Wolfos_AttackForward:
|
||||||
{
|
{
|
||||||
@@ -277,7 +278,7 @@ Sprite_Wolfos_Main:
|
|||||||
.wait
|
.wait
|
||||||
LDA $FE : BEQ .ninguna_cancion
|
LDA $FE : BEQ .ninguna_cancion
|
||||||
STZ $FE
|
STZ $FE
|
||||||
LDA.b #$40 : STA.w SprTimerD, X
|
LDA.b #$20 : STA.w SprTimerD, X
|
||||||
%GotoAction(7)
|
%GotoAction(7)
|
||||||
.ninguna_cancion
|
.ninguna_cancion
|
||||||
|
|
||||||
@@ -288,17 +289,29 @@ Sprite_Wolfos_Main:
|
|||||||
{
|
{
|
||||||
%PlayAnimation(0, 0, 10)
|
%PlayAnimation(0, 0, 10)
|
||||||
|
|
||||||
|
|
||||||
|
LDA SprTimerD, X : BNE .wait
|
||||||
|
%ShowUnconditionalMessage($01F)
|
||||||
|
LDA.b #$01 : STA.l $7EF358
|
||||||
|
%GotoAction(8)
|
||||||
|
.wait
|
||||||
|
RTS
|
||||||
|
}
|
||||||
|
|
||||||
|
Wolfos_Dismiss:
|
||||||
|
{
|
||||||
|
%PlayAnimation(0, 0, 10)
|
||||||
|
STZ.w SprXSpeed, X
|
||||||
|
STZ.w SprYSpeed, X
|
||||||
|
|
||||||
JSL Sprite_PlayerCantPassThrough
|
JSL Sprite_PlayerCantPassThrough
|
||||||
|
|
||||||
LDY #$3A : STZ $02E9 ; Give the Wolf Mask
|
LDA SprTimerD, X : BNE .dismiss
|
||||||
JSL Link_ReceiveItem
|
LDA.b #$00 : STA $0DD0, X ; kill sprite normal style
|
||||||
LDA.b #$01 : STA.l $7EF358
|
|
||||||
LDA #$01 : STA.l $7EF303 ; Set the special flag
|
|
||||||
|
|
||||||
LDA.b #$06 : STA $0DD0, X ; kill sprite normal style
|
|
||||||
STZ.w SprAction, X
|
STZ.w SprAction, X
|
||||||
STZ.w SprHealth, X
|
STZ.w SprHealth, X
|
||||||
|
RTS
|
||||||
|
.dismiss
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user