dismiss fishing rod from menu when changing items

This commit is contained in:
scawful
2024-06-28 10:25:15 -04:00
parent c52a30cbf0
commit 42d80dba36
2 changed files with 22 additions and 0 deletions

View File

@@ -554,4 +554,23 @@ Sprite_Floater_Draw:
WigglingTable:
db 08, -10, 06, -8, 12, -14, 18, -20, 10, -12, 04, -6, 08,-10, 14,-16, 08, -10, 06, -8, 12, -14, 18, -20, 10, -12, 04, -6, 08,-10, 14,-16
DismissRodFromMenu:
{
STZ.w $0300
STZ.b $3D
LDA #$00
STA.l $7F5BA2
LDA.l $7F5BA3 : TAX
STZ.w $0DD0, X
STZ.b $5E
STZ.w $0300
STZ.b $3D
STZ.w $0350
STZ.w $037A
LDA.b $3A
AND.b #$BF
STA.b $3A
RTL
}
print "End of Items/fishing_rod.asm ", pc

View File

@@ -77,6 +77,9 @@ Menu_Entry:
Menu_InitGraphics:
{
LDA.w $0780 : STA.w $00
LDA.w $0202 : CMP.b #$10 : BNE .not_fishing
JSL DismissRodFromMenu
.not_fishing
INC $0200
}