diff options
| author | dannye <33dannye@gmail.com> | 2023-11-20 00:33:27 -0600 |
|---|---|---|
| committer | dannye <33dannye@gmail.com> | 2023-11-20 20:23:27 -0600 |
| commit | 298e99d3776580585c3f434e5d93137ae431bdd3 (patch) | |
| tree | a808c4ffd0fd0f9bd28972bae5236e0d3345c8e5 /scripts/RedsHouse1F_2.asm | |
| parent | Add sound bits documentation for wOptions (#110) (diff) | |
| parent | Name 2 unnamed labels I missed in SeafoamIslandsB4F and PokemonMansion3F (#437) (diff) | |
| download | pokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.tar.gz pokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.tar.xz pokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.zip | |
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'scripts/RedsHouse1F_2.asm')
| -rw-r--r-- | scripts/RedsHouse1F_2.asm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/scripts/RedsHouse1F_2.asm b/scripts/RedsHouse1F_2.asm new file mode 100644 index 00000000..c7e37989 --- /dev/null +++ b/scripts/RedsHouse1F_2.asm @@ -0,0 +1,57 @@ +RedsHouse1FPrintMomText:: + ld a, [wd72e] + bit 3, a ; received a Pokémon from Oak? + 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 |
