refactor catfish

use JML instead of JSL : RTL
This commit is contained in:
spannerisms
2021-03-24 07:39:20 -04:00
parent f6f28d89a9
commit ffd1db722b

View File

@@ -4,8 +4,7 @@
!HEART_REDRAW = "$7F5000" !HEART_REDRAW = "$7F5000"
LoadCatfishItemGFX: LoadCatfishItemGFX:
LDA.l $1DE185 ; location randomizer writes catfish item to LDA.l $1DE185 ; location randomizer writes catfish item to
JSL.l PrepDynamicTile JML PrepDynamicTile
RTL
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
DrawThrownItem: DrawThrownItem:
LDA $8A : CMP.b #$81 : BNE .catfish LDA $8A : CMP.b #$81 : BNE .catfish
@@ -19,8 +18,7 @@ DrawThrownItem:
LDA.l $1DE185 ; location randomizer writes catfish item to LDA.l $1DE185 ; location randomizer writes catfish item to
.draw .draw
JSL.l DrawDynamicTile JML DrawDynamicTile
RTL
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
MarkThrownItem: MarkThrownItem:
JSL Link_ReceiveItem ; thing we wrote over JSL Link_ReceiveItem ; thing we wrote over
@@ -28,12 +26,9 @@ MarkThrownItem:
LDA $8A : CMP.b #$81 : BNE .catfish LDA $8A : CMP.b #$81 : BNE .catfish
.zora .zora
JSL.l ItemSet_ZoraKing JML ItemSet_ZoraKing
BRA .done
.catfish .catfish
JSL.l ItemSet_Catfish JML ItemSet_Catfish
.done
RTL
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------