mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Fix remaining uses of fade
This commit is contained in:
parent
37d3ba4b39
commit
b2afaae7ab
14 changed files with 43 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue