fixed zore ledge heart graphic bug changed seed hash to be manually settable added more seizure safety
39 lines
1.0 KiB
NASM
39 lines
1.0 KiB
NASM
;================================================================================
|
|
; Randomize Catfish
|
|
;--------------------------------------------------------------------------------
|
|
!HEART_REDRAW = "$7F5000"
|
|
LoadCatfishItemGFX:
|
|
LDA.l $1DE185 ; location randomizer writes catfish item to
|
|
JSL.l PrepDynamicTile
|
|
RTL
|
|
;--------------------------------------------------------------------------------
|
|
DrawThrownItem:
|
|
LDA $8A : CMP.b #$81 : BNE .catfish
|
|
|
|
.zora
|
|
LDA.b #$01 : STA !HEART_REDRAW
|
|
LDA.l $1DE1C3 ; location randomizer writes zora item to
|
|
BRA .draw
|
|
|
|
.catfish
|
|
LDA.l $1DE185 ; location randomizer writes catfish item to
|
|
|
|
.draw
|
|
JSL.l DrawDynamicTile
|
|
RTL
|
|
;--------------------------------------------------------------------------------
|
|
MarkThrownItem:
|
|
JSL Link_ReceiveItem ; thing we wrote over
|
|
|
|
LDA $8A : CMP.b #$81 : BNE .catfish
|
|
|
|
.zora
|
|
JSL.l ItemSet_ZoraKing
|
|
BRA .done
|
|
|
|
.catfish
|
|
JSL.l ItemSet_Catfish
|
|
|
|
.done
|
|
RTL
|
|
;-------------------------------------------------------------------------------- |