Files
alttpr-baserom/halfmagicbat.asm
2017-05-17 13:00:32 -04:00

15 lines
496 B
NASM

;================================================================================
; Randomize Half Magic Bat
;--------------------------------------------------------------------------------
GetMagicBatItem:
JSL.l ItemSet_MagicBat
LDA MagicBatItem : CMP.b #$FF : BEQ .normalLogic
TAY
STZ $02E9 ; 0 = Receiving item from an NPC or message
JSL.l Link_ReceiveItem
RTL
.normalLogic
LDA HalfMagic
STA $7EF37B
RTL
;--------------------------------------------------------------------------------