update Sprite_KydrogBoss_CheckIfDead

This commit is contained in:
scawful
2024-06-07 23:12:53 -04:00
parent 1c08111c59
commit 9a6917304f

View File

@@ -65,23 +65,18 @@ Sprite_KydrogBoss_Long:
Sprite_KydrogBoss_CheckIfDead: Sprite_KydrogBoss_CheckIfDead:
{ {
LDA $0D80, X : CMP.b #$09 : BEQ .not_dead LDA $0D80, X : CMP.b #$09 : BEQ .not_dead
; If health is negative, set back to zero ; If health is negative, set back to zero
LDA $0E50, X : CMP.b #$C3 : BCC .healthNotNegative LDA $0E50, X : CMP.b #$C3 : BCC .health_not_negative
LDA.b #$00 : STA $0E50, X LDA.b #$00 : STA $0E50, X
.health_not_negative
.healthNotNegative
LDA $0E50, X : BNE .not_dead LDA $0E50, X : BNE .not_dead
PHX PHX
LDA.b #$04 : STA $0DD0, X ;kill sprite boss style LDA.b #$04 : STA $0DD0, X ;kill sprite boss style
LDA.b #$09 : STA $0D80, X ;go to KydrogBoss_Death stage LDA.b #$09 : STA $0D80, X ;go to KydrogBoss_Death stage
STZ.w $0D90,X STZ.w $0D90,X
LDA.b #$E0 : STA.w $0DF0,X LDA.b #$E0 : STA.w $0DF0,X
PLX PLX
.not_dead .not_dead
RTS RTS