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:
pfero 2017-10-29 11:09:24 +01:00
parent 7c9a156133
commit 88f1b8165b
2 changed files with 5 additions and 5 deletions

View File

@ -958,7 +958,7 @@ Script_waitsfx:
Script_warpsound:
; script command 0x87
callba Function14a07
callba GetWarpSFX
call PlaySFX
ret

View File

@ -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