mirror of
https://github.com/pret/pokeyellow.git
synced 2024-11-23 05:49:57 +00:00
58 lines
1.1 KiB
NASM
58 lines
1.1 KiB
NASM
RedsHouse1FPrintMomText::
|
|
ld a, [wStatusFlags4]
|
|
bit BIT_GOT_STARTER, a
|
|
jp nz, RedsHouse1FMomHealScript
|
|
ld hl, .WakeUpText
|
|
call PrintText
|
|
ret
|
|
|
|
.WakeUpText:
|
|
text_far _RedsHouse1FMomWakeUpText
|
|
text_end
|
|
|
|
RedsHouse1FMomHealScript:
|
|
ld hl, RedsHouse1FMomYouShouldRestText
|
|
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, RedsHouse1FMomLookingGreatText
|
|
call PrintText
|
|
ret
|
|
|
|
RedsHouse1FMomYouShouldRestText:
|
|
text_far _RedsHouse1FMomYouShouldRestText
|
|
text_end
|
|
RedsHouse1FMomLookingGreatText:
|
|
text_far _RedsHouse1FMomLookingGreatText
|
|
text_end
|
|
|
|
RedsHouse1FPrintTVText::
|
|
ld hl, .WrongSideText
|
|
ld a, [wSpritePlayerStateData1FacingDirection]
|
|
cp SPRITE_FACING_UP
|
|
jp nz, .got_text
|
|
ld hl, .StandByMeMovieText
|
|
.got_text
|
|
call PrintText
|
|
ret
|
|
|
|
.StandByMeMovieText:
|
|
text_far _RedsHouse1FTVStandByMeMovieText
|
|
text_end
|
|
|
|
.WrongSideText:
|
|
text_far _RedsHouse1FTVWrongSideText
|
|
text_end
|