mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
Merge branch 'master' of https://github.com/pret/pokered
This commit is contained in:
commit
e8dd755e18
3702 changed files with 163333 additions and 159040 deletions
37
audio/pokedex_rating_sfx.asm
Normal file
37
audio/pokedex_rating_sfx.asm
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
PlayPokedexRatingSfx::
|
||||
ldh a, [hDexRatingNumMonsOwned]
|
||||
ld c, $0
|
||||
ld hl, OwnedMonValues
|
||||
.getSfxPointer
|
||||
cp [hl]
|
||||
jr c, .gotSfxPointer
|
||||
inc c
|
||||
inc hl
|
||||
jr .getSfxPointer
|
||||
.gotSfxPointer
|
||||
push bc
|
||||
ld a, SFX_STOP_ALL_MUSIC
|
||||
ld [wNewSoundID], a
|
||||
call PlaySoundWaitForCurrent
|
||||
pop bc
|
||||
ld b, $0
|
||||
ld hl, PokedexRatingSfxPointers
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld c, [hl]
|
||||
call PlaySound
|
||||
call WaitForSoundToFinish
|
||||
jp PlayDefaultMusic
|
||||
|
||||
PokedexRatingSfxPointers:
|
||||
db SFX_DENIED, BANK(SFX_Denied_1)
|
||||
db SFX_POKEDEX_RATING, BANK(SFX_Pokedex_Rating_1)
|
||||
db SFX_GET_ITEM_1, BANK(SFX_Get_Item1_1)
|
||||
db SFX_CAUGHT_MON, BANK(SFX_Caught_Mon)
|
||||
db SFX_LEVEL_UP, BANK(SFX_Level_Up)
|
||||
db SFX_GET_KEY_ITEM, BANK(SFX_Get_Key_Item_1)
|
||||
db SFX_GET_ITEM_2, BANK(SFX_Get_Item2_1)
|
||||
|
||||
OwnedMonValues:
|
||||
db 10, 40, 60, 90, 120, 150, $ff
|
||||
Loading…
Add table
Add a link
Reference in a new issue