summaryrefslogtreecommitdiff
path: root/scripts/PewterPokecenter.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/PewterPokecenter.asm')
-rw-r--r--scripts/PewterPokecenter.asm81
1 files changed, 17 insertions, 64 deletions
diff --git a/scripts/PewterPokecenter.asm b/scripts/PewterPokecenter.asm
index 5030244c..247ecb03 100644
--- a/scripts/PewterPokecenter.asm
+++ b/scripts/PewterPokecenter.asm
@@ -1,12 +1,17 @@
PewterPokecenter_Script:
+ ld hl, wd492
+ set 7, [hl]
call Serial_TryEstablishingExternallyClockedConnection
- jp EnableAutoTextBoxDrawing
+ call EnableAutoTextBoxDrawing
+ ret
PewterPokecenter_TextPointers:
dw PewterHealNurseText
dw PewterPokecenterText2
dw PewterJigglypuffText
dw PewterTradeNurseText
+ dw PewterPokecenterText5
+ dw PewterPokecenterText6
PewterHealNurseText:
script_pokecenter_nurse
@@ -17,70 +22,18 @@ PewterPokecenterText2:
PewterJigglypuffText:
text_asm
- ld a, TRUE
- ld [wDoNotWaitForButtonPressAfterDisplayingText], a
- ld hl, .JigglypuffText
- call PrintText
-
- ld a, SFX_STOP_ALL_MUSIC
- call PlaySound
- ld c, 32
- call DelayFrames
-
- ld hl, JigglypuffFacingDirections
- ld de, wJigglypuffFacingDirections
- ld bc, JigglypuffFacingDirectionsEnd - JigglypuffFacingDirections
- call CopyData
-
- ld a, [wSprite03StateData1ImageIndex]
- ld hl, wJigglypuffFacingDirections
-.findMatchingFacingDirectionLoop
- cp [hl]
- inc hl
- jr nz, .findMatchingFacingDirectionLoop
- dec hl
-
- push hl
- ld c, BANK(Music_JigglypuffSong)
- ld a, MUSIC_JIGGLYPUFF_SONG
- call PlayMusic
- pop hl
-
-.spinMovementLoop
- ld a, [hl]
- ld [wSprite03StateData1ImageIndex], a
-; rotate the array
- push hl
- ld hl, wJigglypuffFacingDirections
- ld de, wJigglypuffFacingDirections - 1
- ld bc, JigglypuffFacingDirectionsEnd - JigglypuffFacingDirections
- call CopyData
- ld a, [wJigglypuffFacingDirections - 1]
- ld [wJigglypuffFacingDirections + 3], a
- pop hl
- ld c, 24
- call DelayFrames
- ld a, [wChannelSoundIDs]
- ld b, a
- ld a, [wChannelSoundIDs + Ch2]
- or b
- jr nz, .spinMovementLoop
-
- ld c, 48
- call DelayFrames
- call PlayDefaultMusic
+ farcall PewterJigglypuff
jp TextScriptEnd
-.JigglypuffText:
- text_far _PewterJigglypuffText
- text_end
-
-JigglypuffFacingDirections:
- db $30 | SPRITE_FACING_DOWN
- db $30 | SPRITE_FACING_LEFT
- db $30 | SPRITE_FACING_UP
- db $30 | SPRITE_FACING_RIGHT
-JigglypuffFacingDirectionsEnd:
-
PewterTradeNurseText:
script_cable_club_receptionist
+
+PewterPokecenterText5:
+ text_asm
+ farcall Func_f1d98
+ jp TextScriptEnd
+
+PewterPokecenterText6:
+ text_asm
+ callfar PokecenterChanseyText
+ jp TextScriptEnd