Cleanup bug_net_kid.asm

This commit is contained in:
scawful
2024-10-03 19:22:47 -04:00
parent 6fd5e047df
commit 9872d9d0ba

View File

@@ -4,23 +4,17 @@
SickKid_CheckForSongOfHealing:
{
LDA $FE : CMP.b #$01 : BNE .no_song
INC $0D80, X
INC $02E4
STZ $FE
.no_song
RTL
}
pushpc
org $07F4D0
Sprite_CheckIfPlayerPreoccupied:
org $06F154
Sprite_CheckDamageToPlayer_same_layer:
Sprite_CheckIfPlayerPreoccupied = $07F4D0
Sprite_CheckDamageToPlayer_same_layer = $06F154
org $068D7F
SpritePrep_SickKid:
@@ -36,15 +30,11 @@ org $06B962
BugNetKid_Resting:
{
JSL Sprite_CheckIfPlayerPreoccupied : BCS .dont_awaken
JSR Sprite_CheckDamageToPlayer_same_layer : BCC .dont_awaken
JSL SickKid_CheckForSongOfHealing
LDA.l $7EF355
CMP.b #$01 : BCC .no_boots
.dont_awaken
RTS
.no_boots
@@ -59,20 +49,14 @@ BugNetKid_GrantBugNet:
{
; Give Link the Boots
LDY.b #$4B
STZ $02E9
PHX
JSL Link_ReceiveItem
PLX
INC $0D80, X
STZ $02E4
RTS
}
pullpc