summaryrefslogtreecommitdiff
path: root/scripts/RedsHouse1F2.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/RedsHouse1F2.asm')
-rwxr-xr-xscripts/RedsHouse1F2.asm58
1 files changed, 58 insertions, 0 deletions
diff --git a/scripts/RedsHouse1F2.asm b/scripts/RedsHouse1F2.asm
new file mode 100755
index 00000000..e1b2145b
--- /dev/null
+++ b/scripts/RedsHouse1F2.asm
@@ -0,0 +1,58 @@
+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
+