mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 15:12:18 +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
36
audio/pokedex_rating_sfx.asm
Normal file
36
audio/pokedex_rating_sfx.asm
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
PlayPokedexRatingSfx::
|
||||
ld a, [$ffdc]
|
||||
ld c, $0
|
||||
ld hl, OwnedMonValues
|
||||
.getSfxPointer
|
||||
cp [hl]
|
||||
jr c, .gotSfxPointer
|
||||
inc c
|
||||
inc hl
|
||||
jr .getSfxPointer
|
||||
.gotSfxPointer
|
||||
push bc
|
||||
ld a, $ff
|
||||
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 PlayMusic
|
||||
jp PlayDefaultMusic
|
||||
|
||||
PokedexRatingSfxPointers:
|
||||
db SFX_DENIED, BANK(SFX_Denied_3)
|
||||
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