dismiss fishing rod from menu when changing items
This commit is contained in:
@@ -554,4 +554,23 @@ Sprite_Floater_Draw:
|
|||||||
WigglingTable:
|
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
|
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
|
print "End of Items/fishing_rod.asm ", pc
|
||||||
@@ -77,6 +77,9 @@ Menu_Entry:
|
|||||||
Menu_InitGraphics:
|
Menu_InitGraphics:
|
||||||
{
|
{
|
||||||
LDA.w $0780 : STA.w $00
|
LDA.w $0780 : STA.w $00
|
||||||
|
LDA.w $0202 : CMP.b #$10 : BNE .not_fishing
|
||||||
|
JSL DismissRodFromMenu
|
||||||
|
.not_fishing
|
||||||
INC $0200
|
INC $0200
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user