mirror of
https://github.com/pret/pokeyellow.git
synced 2026-05-15 15:29:45 -05:00
58 lines
941 B
NASM
58 lines
941 B
NASM
Func_f1b73::
|
|
ld a, [wd72e]
|
|
bit 3, a ; received a Pokémon from Oak?
|
|
jp nz, MomHealPokemon
|
|
ld hl, MomWakeUpText
|
|
call PrintText
|
|
ret
|
|
|
|
MomWakeUpText:
|
|
text_far _MomWakeUpText
|
|
text_end
|
|
|
|
MomHealPokemon:
|
|
ld hl, MomHealText1
|
|
call PrintText
|
|
call GBFadeOutToWhite
|
|
call ReloadMapData
|
|
predef HealParty
|
|
ld a, MUSIC_PKMN_HEALED
|
|
ld [wNewSoundID], a
|
|
call PlaySound
|
|
.next
|
|
ld a, [wChannelSoundIDs]
|
|
cp MUSIC_PKMN_HEALED
|
|
jr z, .next
|
|
ld a, [wMapMusicSoundID]
|
|
ld [wNewSoundID], a
|
|
call PlaySound
|
|
call GBFadeInFromWhite
|
|
ld hl, MomHealText2
|
|
call PrintText
|
|
ret
|
|
|
|
MomHealText1:
|
|
text_far _MomHealText1
|
|
text_end
|
|
MomHealText2:
|
|
text_far _MomHealText2
|
|
text_end
|
|
|
|
Func_f1bc4::
|
|
ld hl, TVWrongSideText
|
|
ld a, [wSpritePlayerStateData1FacingDirection]
|
|
cp SPRITE_FACING_UP
|
|
jp nz, .got_text
|
|
ld hl, StandByMeText
|
|
.got_text
|
|
call PrintText
|
|
ret
|
|
|
|
StandByMeText:
|
|
text_far _StandByMeText
|
|
text_end
|
|
|
|
TVWrongSideText:
|
|
text_far _TVWrongSideText
|
|
text_end
|