Cleanup Mermaid subsprites jump table

This commit is contained in:
scawful
2024-09-22 16:27:48 -04:00
parent ee9b89129c
commit 874c4af85c

View File

@@ -63,24 +63,24 @@ Sprite_Mermaid_Prep:
PHB : PHK : PLB
LDA.b #$80 : STA.w SprDefl, X
LDA.b #$40 : STA.w SprTimerA, X
STZ.w SprMiscE, X
LDA.b #$07 : STA.w SprHitbox, X
LDA.w SprSubtype, X : CMP.b #$01 : BNE +
; Mermaid Sprite
STZ.w SprMiscE, X
; Maple Sprite
LDA.w SprSubtype, X : CMP.b #$01 : BNE +
LDA.b #$01 : STA.w SprMiscE, X
+
CMP.b #$02 : BNE ++
; Librarian Sprite
CMP.b #$02 : BNE ++
LDA.b #$02 : STA.w SprMiscE, X
LDA.b #$06 : STA.w SprAction, X
++
PLB
RTL
}
Sprite_Mermaid_Main:
{
LDA.w SprMiscE, X
@@ -116,7 +116,6 @@ Sprite_Mermaid_Main:
MermaidDive:
{
%PlayAnimation(1,2, 14)
LDA.w SprX, X : INC : STA.w SprX, X
LDA.w SprTimerA, X : BNE +
INC.w SprAction, X
@@ -230,7 +229,6 @@ Sprite_Mermaid_Main:
%GotoAction(0)
RTS
}
}
LibrarianHandler:
@@ -260,17 +258,12 @@ Sprite_Mermaid_Main:
RTS
}
}
}
Librarian_CheckForAllMaps:
{
LDA.l DNGMAP1
CMP.b #$FC
BNE .not_all_maps
LDA.l DNGMAP2
CMP.b #$FF
BEQ .all_maps
LDA.l DNGMAP1 : CMP.b #$FC : BNE .not_all_maps
LDA.l DNGMAP2 : CMP.b #$FF : BEQ .all_maps
.not_all_maps
CLC
RTS