Fix remaining uses of fade

This commit is contained in:
dannye 2021-03-30 01:06:32 -05:00
parent 37d3ba4b39
commit b2afaae7ab
14 changed files with 43 additions and 62 deletions

View file

@ -884,7 +884,7 @@ TradeJumpPokeball:
cp $ff
jr nz, .skipPlayingSound
.playSound ; play sound if next move distance is 12 or this is the last one
ld a, SFX_BATTLE_18
ld a, SFX_SWAP
call PlaySound
.skipPlayingSound
push bc

View file

@ -30,7 +30,7 @@ SafariZoneGameStillGoing:
SafariZoneGameOver:
call EnableAutoTextBoxDrawing
xor a
ld [wAudioFadeOutControl], a
ld [wMusicFade], a
dec a ; SFX_STOP_ALL_MUSIC
call PlaySound
ld c, 0 ; BANK(SFX_Safari_Zone_PA)

View file

@ -24,7 +24,7 @@ DisplayPokemonCenterDialogue_::
predef HealParty
farcall AnimateHealingMachine ; do the healing machine animation
xor a
ld [wAudioFadeOutControl], a
ld [wMusicFade], a
; ld a, [wAudioSavedROMBank]
; ld [wAudioROMBank], a
ld a, [wMapMusicSoundID]

View file

@ -825,12 +825,12 @@ TradeCenter_Trade:
ld a, [hl]
ld [wTradedEnemyMonSpecies], a
ld a, 10
ld [wAudioFadeOutControl], a
ld [wMusicFade], a
; ld a, 0 ; BANK(Music_SafariZone)
; ld [wAudioSavedROMBank], a
ld a, MUSIC_SAFARI_ZONE
; ld [wNewSoundID], a
call PlayMusic
ld [wMusicFadeID], a
; call PlayMusic
ld c, 100
call DelayFrames
call ClearScreen
@ -916,12 +916,13 @@ CableClub_Run:
ld [wLinkState], a
ldh [hJoy5], a
ld a, 10
ld [wAudioFadeOutControl], a
ld [wMusicFade], a
; ld a, 0 ; BANK(Music_Celadon)
; ld [wAudioSavedROMBank], a
ld a, MUSIC_CELADON
; ld [wNewSoundID], a
jp PlayMusic
ld [wMusicFadeID], a
; jp PlayMusic
ret
EmptyFunc:
ret

View file

@ -281,8 +281,7 @@ HoFRecordMonInfo:
HoFFadeOutScreenAndMusic:
ld a, 10
ld [wAudioFadeOutCounterReloadValue], a
ld [wAudioFadeOutCounter], a
ld a, $ff
ld [wAudioFadeOutControl], a
ld [wMusicFade], a
xor a
ld [wMusicFadeID], a
jp GBFadeOutToWhite

View file

@ -133,12 +133,9 @@ OakSpeech:
; ld [wAudioSavedROMBank], a
ld a, 10
call StopMusic
; ld a, 10
; ld [wAudioFadeOutControl], a
; ld a, SFX_STOP_ALL_MUSIC
; ld [wNewSoundID], a
; call PlaySound
ld [wMusicFade], a
xor a
ld [wMusicFadeID], a
pop af
ldh [hLoadedROMBank], a

View file

@ -17,17 +17,13 @@ AnimateHealingMachine:
call CopyHealingMachineOAM
ld a, 4
call StopMusic
call WaitForSongToFinish
; ld a, 4
; ld [wAudioFadeOutControl], a
; ld a, SFX_STOP_ALL_MUSIC
; ld [wNewSoundID], a
; call PlaySound
;.waitLoop
; ld a, [wAudioFadeOutControl]
; and a ; is fade-out finished?
; jr nz, .waitLoop ; if not, check again
ld [wMusicFade], a
xor a
ld [wMusicFadeID], a
.waitLoop
ld a, [wMusicFade]
and a ; is fade-out finished?
jr nz, .waitLoop ; if not, check again
ld a, [wPartyCount]
ld b, a

View file

@ -122,7 +122,6 @@ _LeaveMapAnim::
.playerNotStandingOnWarpPadOrHole
ld a, $4
call StopMusic
call WaitForSongToFinish
ld a, [wd732]
bit 6, a ; is the last used pokemon center the destination?
jr z, .flyAnimation