Update Tingle NPC logic
This commit is contained in:
@@ -53,7 +53,6 @@ Sprite_Tingle_Prep:
|
|||||||
Sprite_Tingle_Main:
|
Sprite_Tingle_Main:
|
||||||
{
|
{
|
||||||
JSL Sprite_PlayerCantPassThrough
|
JSL Sprite_PlayerCantPassThrough
|
||||||
|
|
||||||
LDA.w SprAction, X
|
LDA.w SprAction, X
|
||||||
JSL UseImplicitRegIndexedLocalJumpTable
|
JSL UseImplicitRegIndexedLocalJumpTable
|
||||||
|
|
||||||
@@ -62,6 +61,7 @@ Sprite_Tingle_Main:
|
|||||||
dw Tingle_Left
|
dw Tingle_Left
|
||||||
dw Tingle_MapPrompt
|
dw Tingle_MapPrompt
|
||||||
dw Tingle_MapSales
|
dw Tingle_MapSales
|
||||||
|
dw Tingle_PlayerSaidNo
|
||||||
|
|
||||||
Tingle_Forward:
|
Tingle_Forward:
|
||||||
{
|
{
|
||||||
@@ -69,10 +69,10 @@ Sprite_Tingle_Main:
|
|||||||
JSR Sprite_Tingle_TrackPlayer
|
JSR Sprite_Tingle_TrackPlayer
|
||||||
|
|
||||||
%ShowSolicitedMessage($018D) : BCC +
|
%ShowSolicitedMessage($018D) : BCC +
|
||||||
LDA.b #$03 : STA.w SprAction, X
|
%GotoAction(3)
|
||||||
+
|
+
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
Tingle_Right:
|
Tingle_Right:
|
||||||
{
|
{
|
||||||
@@ -91,13 +91,18 @@ Sprite_Tingle_Main:
|
|||||||
Tingle_MapPrompt:
|
Tingle_MapPrompt:
|
||||||
{
|
{
|
||||||
%PlayAnimation(0,0,10)
|
%PlayAnimation(0,0,10)
|
||||||
LDA.l TingleMaps : ASL : TAX
|
LDA $1CE8 : BNE .said_no
|
||||||
LDY.b #$01
|
PHX
|
||||||
LDA.w .message_ids, X
|
LDA.l TingleMaps : ASL : TAX
|
||||||
JSL Sprite_ShowMessageUnconditional
|
LDY.b #$01
|
||||||
INC.w SprAction, X
|
LDA.w .message_ids, X
|
||||||
|
JSL Sprite_ShowMessageUnconditional
|
||||||
|
PLX
|
||||||
|
%GotoAction(4)
|
||||||
|
RTS
|
||||||
|
.said_no
|
||||||
|
%GotoAction(5)
|
||||||
RTS
|
RTS
|
||||||
|
|
||||||
.message_ids
|
.message_ids
|
||||||
dw $0191
|
dw $0191
|
||||||
dw $0192
|
dw $0192
|
||||||
@@ -126,9 +131,9 @@ Sprite_Tingle_Main:
|
|||||||
RTS
|
RTS
|
||||||
.not_enough_rupees
|
.not_enough_rupees
|
||||||
%ShowSolicitedMessage($018F) ; Not enough rupees
|
%ShowSolicitedMessage($018F) ; Not enough rupees
|
||||||
|
RTS
|
||||||
.said_no
|
.said_no
|
||||||
LDA.b #$10 : STA.w SprTimerA, X
|
%GotoAction(5)
|
||||||
STZ.w SprAction, X
|
|
||||||
RTS
|
RTS
|
||||||
|
|
||||||
.cost
|
.cost
|
||||||
@@ -140,6 +145,14 @@ Sprite_Tingle_Main:
|
|||||||
dw 60
|
dw 60
|
||||||
dw 120
|
dw 120
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Tingle_PlayerSaidNo:
|
||||||
|
{
|
||||||
|
%ShowUnconditionalMessage($0198)
|
||||||
|
STZ.w SprAction, X
|
||||||
|
RTS
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Sprite_Tingle_TrackPlayer:
|
Sprite_Tingle_TrackPlayer:
|
||||||
|
|||||||
Reference in New Issue
Block a user