aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/pokecenter.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
committerdannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
commit5647ca687b92954dcf37a6ea6bfbc9a341c32de4 (patch)
treedde1937a1bfdb3a835f4155e1c2eb8f1aaf86f63 /engine/overworld/pokecenter.asm
parentMerge pull request #55 from Deokishisu/patch-1 (diff)
downloadpokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.tar.gz
pokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.tar.xz
pokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.zip
Sync with pokered
Diffstat (limited to 'engine/overworld/pokecenter.asm')
-rwxr-xr-xengine/overworld/pokecenter.asm149
1 files changed, 0 insertions, 149 deletions
diff --git a/engine/overworld/pokecenter.asm b/engine/overworld/pokecenter.asm
deleted file mode 100755
index cf0159f9..00000000
--- a/engine/overworld/pokecenter.asm
+++ /dev/null
@@ -1,149 +0,0 @@
-DisplayPokemonCenterDialogue_:
- ld a, [wCurMap]
- cp PEWTER_POKECENTER
- jr nz, .regularCenter
- call CheckPikachuFollowingPlayer
- jr z, .regularCenter
- ld hl, LooksContentText ; if pikachu is sleeping, don't heal
- call PrintText
- ret
-.regularCenter
- call SaveScreenTilesToBuffer1 ; save screen
- ld hl, PokemonCenterWelcomeText
- call PrintText
- ld hl, wd72e
- bit 2, [hl]
- set 1, [hl]
- set 2, [hl]
- jr nz, .skipShallWeHealYourPokemon
- ld hl, ShallWeHealYourPokemonText
- call PrintText
-.skipShallWeHealYourPokemon
- call YesNoChoicePokeCenter ; yes/no menu
- call UpdateSprites
- ld a, [wCurrentMenuItem]
- and a
- jp nz, .declinedHealing ; if the player chose No
- call SetLastBlackoutMap
- callab IsStarterPikachuInOurParty
- jr nc, .notHealingPlayerPikachu
- call CheckPikachuFollowingPlayer
- jr nz, .notHealingPlayerPikachu
- call LoadCurrentMapView
- call Delay3
- call UpdateSprites
- callab PikachuWalksToNurseJoy ; todo
-.notHealingPlayerPikachu
- ld hl, NeedYourPokemonText
- call PrintText
- ld c, 64
- call DelayFrames
- call CheckPikachuFollowingPlayer
- jr nz, .playerPikachuNotOnScreen
- call DisablePikachuOverworldSpriteDrawing
- callab IsStarterPikachuInOurParty
- call c, Func_6eaa
-.playerPikachuNotOnScreen
- lb bc, 1, 8
- call Func_6ebb
- ld c, 30
- call DelayFrames
- callba AnimateHealingMachine ; do the healing machine animation
- predef HealParty
- xor a
- ld [wAudioFadeOutControl], a
- ld a, [wAudioSavedROMBank]
- ld [wAudioROMBank], a
- ld a, [wMapMusicSoundID]
- ld [wLastMusicSoundID], a
- ld [wNewSoundID], a
- call PlaySound
- call CheckPikachuFollowingPlayer
- jr nz, .doNotReturnPikachu
- callab IsStarterPikachuInOurParty
- call c, Func_6eaa
- ld a, $5
- ld [wPikachuSpawnState], a
- call EnablePikachuOverworldSpriteDrawing
-.doNotReturnPikachu
- lb bc, 1, 0
- call Func_6ebb
- ld hl, PokemonFightingFitText
- call PrintText
- callab IsStarterPikachuInOurParty
- jr nc, .notInParty
- lb bc, 15, 0
- call Func_6ebb
-.notInParty
- call LoadCurrentMapView
- call Delay3
- call UpdateSprites
- callab ReloadWalkingTilePatterns
- ld a, $1
- ld [H_SPRITEINDEX], a
- ld a, $1
- ld [hSpriteImageIndex], a
- call SpriteFunc_34a1
- ld c, 40
- call DelayFrames
- call UpdateSprites
- call LoadFontTilePatterns
- jr .done
-.declinedHealing
- call LoadScreenTilesFromBuffer1 ; restore screen
-.done
- ld hl, PokemonCenterFarewellText
- call PrintText
- call UpdateSprites
- ret
-
-Func_6eaa:
- ld a, $1
- ld [H_SPRITEINDEX], a
- ld a, $4
- ld [hSpriteImageIndex], a
- call SpriteFunc_34a1
- ld c, 64
- call DelayFrames
- ret
-
-Func_6ebb:
- ld a, b
- ld [H_SPRITEINDEX], a
- ld a, c
- ld [hSpriteImageIndex], a
- push bc
- call SetSpriteFacingDirectionAndDelay
- pop bc
- ld a, b
- ld [H_SPRITEINDEX], a
- ld a, c
- ld [hSpriteImageIndex], a
- call SpriteFunc_34a1
- ret
-
-PokemonCenterWelcomeText:
- TX_FAR _PokemonCenterWelcomeText
- db "@"
-
-ShallWeHealYourPokemonText:
- TX_DELAY
- TX_FAR _ShallWeHealYourPokemonText
- db "@"
-
-NeedYourPokemonText:
- TX_FAR _NeedYourPokemonText
- db "@"
-
-PokemonFightingFitText:
- TX_FAR _PokemonFightingFitText
- db "@"
-
-PokemonCenterFarewellText:
- TX_DELAY
- TX_FAR _PokemonCenterFarewellText
- db "@"
-
-LooksContentText:
- TX_FAR _LooksContentText
- db "@"