mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 14:48:43 +13:00
Add subdirectories to engine/ similar to pokecrystal
This commit is contained in:
parent
5559d51c86
commit
f275790aec
124 changed files with 342 additions and 346 deletions
34
audio/play_battle_music.asm
Normal file
34
audio/play_battle_music.asm
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
PlayBattleMusic::
|
||||
xor a
|
||||
ld [wAudioFadeOutControl], a
|
||||
ld [wLowHealthAlarm], a
|
||||
dec a
|
||||
ld [wNewSoundID], a
|
||||
call PlaySound ; stop music
|
||||
call DelayFrame
|
||||
ld c, BANK(Music_GymLeaderBattle)
|
||||
ld a, [wGymLeaderNo]
|
||||
and a
|
||||
jr z, .notGymLeaderBattle
|
||||
ld a, MUSIC_GYM_LEADER_BATTLE
|
||||
jr .playSong
|
||||
.notGymLeaderBattle
|
||||
ld a, [wCurOpponent]
|
||||
cp OPP_ID_OFFSET
|
||||
jr c, .wildBattle
|
||||
cp OPP_SONY3
|
||||
jr z, .finalBattle
|
||||
cp OPP_LANCE
|
||||
jr nz, .normalTrainerBattle
|
||||
ld a, MUSIC_GYM_LEADER_BATTLE ; lance also plays gym leader theme
|
||||
jr .playSong
|
||||
.normalTrainerBattle
|
||||
ld a, MUSIC_TRAINER_BATTLE
|
||||
jr .playSong
|
||||
.finalBattle
|
||||
ld a, MUSIC_FINAL_BATTLE
|
||||
jr .playSong
|
||||
.wildBattle
|
||||
ld a, MUSIC_WILD_BATTLE
|
||||
.playSong
|
||||
jp PlayMusic
|
||||
Loading…
Add table
Add a link
Reference in a new issue