mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-07 16:45:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
30
engine/events/play_slow_cry.asm
Normal file
30
engine/events/play_slow_cry.asm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
PlaySlowCry:
|
||||
ld a, [wScriptVar]
|
||||
call LoadCry
|
||||
jr c, .done
|
||||
|
||||
ld hl, wCryPitch
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
ld bc, -$140
|
||||
add hl, bc
|
||||
ld a, l
|
||||
ld [wCryPitch], a
|
||||
ld a, h
|
||||
ld [wCryPitch + 1], a
|
||||
ld hl, wCryLength
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
ld bc, $60
|
||||
add hl, bc
|
||||
ld a, l
|
||||
ld [wCryLength], a
|
||||
ld a, h
|
||||
ld [wCryLength + 1], a
|
||||
farcall _PlayCry
|
||||
call WaitSFX
|
||||
|
||||
.done
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue