mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Define GetWarpSFX
This function checks the current tile at the player's feet, and returns an appropriate SFX that should be played when warping from it.
This commit is contained in:
parent
7c9a156133
commit
88f1b8165b
@ -958,7 +958,7 @@ Script_waitsfx:
|
||||
Script_warpsound:
|
||||
; script command 0x87
|
||||
|
||||
callba Function14a07
|
||||
callba GetWarpSFX
|
||||
call PlaySFX
|
||||
ret
|
||||
|
||||
|
@ -97,14 +97,14 @@ CheckCutCollision: ; 149f5
|
||||
db -1
|
||||
; 14a07
|
||||
|
||||
Function14a07:: ; 14a07
|
||||
GetWarpSFX:: ; 14a07
|
||||
ld a, [PlayerStandingTile]
|
||||
ld de, $1f
|
||||
ld de, SFX_ENTER_DOOR
|
||||
cp $71 ; door
|
||||
ret z
|
||||
ld de, $13
|
||||
ld de, SFX_WARP_TO
|
||||
cp $7c ; warp pad
|
||||
ret z
|
||||
ld de, $23
|
||||
ld de, SFX_EXIT_BUILDING
|
||||
ret
|
||||
; 14a1a
|
||||
|
Loading…
Reference in New Issue
Block a user