summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rwxr-xr-xengine/battle/animations.asm350
-rw-r--r--engine/battle/common_text.asm2
-rwxr-xr-xengine/battle/core.asm10
-rw-r--r--engine/battle/trainer_ai.asm2
-rwxr-xr-xengine/evolution.asm2
-rwxr-xr-xengine/evos_moves.asm2
-rwxr-xr-xengine/gamefreak.asm2
-rwxr-xr-xengine/hidden_object_functions17.asm8
-rwxr-xr-xengine/hidden_object_functions7.asm16
-rwxr-xr-xengine/intro.asm20
-rwxr-xr-xengine/items/items.asm24
-rwxr-xr-xengine/learn_move.asm2
-rwxr-xr-xengine/menu/main_menu.asm2
-rwxr-xr-xengine/menu/naming_screen.asm2
-rwxr-xr-xengine/menu/pc.asm12
-rwxr-xr-xengine/menu/players_pc.asm8
-rwxr-xr-xengine/menu/start_menu.asm2
-rwxr-xr-xengine/menu/start_sub_menus.asm2
-rwxr-xr-xengine/menu/vending_machine.asm2
-rwxr-xr-xengine/oak_speech.asm2
-rwxr-xr-xengine/overworld/cable_club_npc.asm2
-rwxr-xr-xengine/overworld/card_key.asm2
-rwxr-xr-xengine/overworld/cut.asm2
-rwxr-xr-xengine/overworld/elevator.asm4
-rwxr-xr-xengine/overworld/healing_machine.asm2
-rwxr-xr-xengine/overworld/hidden_items.asm2
-rwxr-xr-xengine/overworld/ledges.asm2
-rwxr-xr-xengine/overworld/player_animations.asm12
-rwxr-xr-xengine/overworld/pokemart.asm2
-rwxr-xr-xengine/save.asm4
-rwxr-xr-xengine/slot_machine.asm10
-rwxr-xr-xengine/titlescreen.asm4
-rwxr-xr-xengine/town_map.asm6
-rwxr-xr-xengine/trade.asm4
34 files changed, 265 insertions, 265 deletions
diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm
index d21e07e5..d9406257 100755
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -741,7 +741,7 @@ DoBallTossSpecialEffects: ; 78f3e (1e:4f3e)
cp a,11 ; is it the beginning of the subanimation?
jr nz,.skipPlayingSound
; if it is the beginning of the subanimation, play a sound
- ld a,(SFX_08_41 - SFX_Headers_08) / 3
+ ld a,SFX_BATTLE_01
call PlaySound
.skipPlayingSound
ld a,[W_ISINBATTLE]
@@ -787,7 +787,7 @@ DoBallShakeSpecialEffects: ; 78f96 (1e:4f96)
cp a,4 ; is it the beginning of a shake?
jr nz,.skipPlayingSound
; if it is the beginning of a shake, play a sound and wait 2/3 of a second
- ld a,(SFX_08_3c - SFX_Headers_08) / 3
+ ld a,SFX_TINK
call PlaySound
ld c,40
call DelayFrames
@@ -820,7 +820,7 @@ DoPoofSpecialEffects: ; 78fce (1e:4fce)
ld a,[W_SUBANIMCOUNTER]
cp a,5
ret nz
- ld a,(SFX_08_42 - SFX_Headers_08) / 3
+ ld a,SFX_BATTLE_02
jp PlaySound
DoRockSlideSpecialEffects: ; 78fd9 (1e:4fd9)
@@ -921,7 +921,7 @@ TradeShakePokeball: ; 7904c (1e:504c)
jr .loop
.done
call AnimationCleanOAM
- ld a,(SFX_02_44 - SFX_Headers_02) / 3
+ ld a,SFX_TRADE_MACHINE
jp PlaySound
BallMoveDistances1: ; 79078 (1e:5078)
@@ -952,7 +952,7 @@ TradeJumpPokeball: ; 507C
cp a,$ff
jr nz,.skipPlayingSound
.playSound ; play sound if next move distance is 12 or this is the last one
- ld a,(SFX_08_58 - SFX_Headers_08) / 3
+ ld a,SFX_BATTLE_18
call PlaySound
.skipPlayingSound
push bc
@@ -2329,172 +2329,172 @@ IsCryMove: ; 798ad (1e:58ad)
ret
MoveSoundTable: ; 798bc (1e:58bc)
- db (SFX_08_4a - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_4c - SFX_Headers_08) / 3,$10,$80
- db (SFX_08_5d - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_4b - SFX_Headers_08) / 3,$01,$80
- db (SFX_08_4d - SFX_Headers_08) / 3,$00,$40
- db (SFX_08_77 - SFX_Headers_08) / 3,$00,$ff
- db (SFX_08_4d - SFX_Headers_08) / 3,$10,$60
- db (SFX_08_4d - SFX_Headers_08) / 3,$20,$80
- db (SFX_08_4d - SFX_Headers_08) / 3,$00,$a0
- db (SFX_08_50 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_4f - SFX_Headers_08) / 3,$20,$40
- db (SFX_08_4f - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_4e - SFX_Headers_08) / 3,$00,$a0
- db (SFX_08_51 - SFX_Headers_08) / 3,$10,$c0
- db (SFX_08_51 - SFX_Headers_08) / 3,$00,$a0
- db (SFX_08_52 - SFX_Headers_08) / 3,$00,$c0
- db (SFX_08_52 - SFX_Headers_08) / 3,$10,$a0
- db (SFX_08_53 - SFX_Headers_08) / 3,$00,$e0
- db (SFX_08_51 - SFX_Headers_08) / 3,$20,$c0
- db (SFX_08_54 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_62 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_55 - SFX_Headers_08) / 3,$01,$80
- db (SFX_08_60 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_57 - SFX_Headers_08) / 3,$f0,$40
- db (SFX_08_5a - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_57 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_61 - SFX_Headers_08) / 3,$10,$80
- db (SFX_08_5b - SFX_Headers_08) / 3,$01,$a0
- db (SFX_08_58 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_5e - SFX_Headers_08) / 3,$00,$60
- db (SFX_08_5e - SFX_Headers_08) / 3,$01,$40
- db (SFX_08_5f - SFX_Headers_08) / 3,$00,$a0
- db (SFX_08_5a - SFX_Headers_08) / 3,$10,$a0
- db (SFX_08_60 - SFX_Headers_08) / 3,$00,$c0
- db (SFX_08_54 - SFX_Headers_08) / 3,$10,$60
- db (SFX_08_5a - SFX_Headers_08) / 3,$00,$a0
- db (SFX_08_62 - SFX_Headers_08) / 3,$11,$c0
- db (SFX_08_5a - SFX_Headers_08) / 3,$20,$c0
- db (SFX_08_61 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_5b - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_5b - SFX_Headers_08) / 3,$20,$c0
- db (SFX_08_59 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_71 - SFX_Headers_08) / 3,$ff,$40
- db (SFX_08_5e - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_4b - SFX_Headers_08) / 3,$00,$c0
- db (SFX_08_4b - SFX_Headers_08) / 3,$00,$40
- db (SFX_08_75 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_67 - SFX_Headers_08) / 3,$40,$60
- db (SFX_08_67 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_67 - SFX_Headers_08) / 3,$ff,$40
- db (SFX_08_6a - SFX_Headers_08) / 3,$80,$c0
- db (SFX_08_59 - SFX_Headers_08) / 3,$10,$a0
- db (SFX_08_59 - SFX_Headers_08) / 3,$21,$e0
- db (SFX_08_69 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_64 - SFX_Headers_08) / 3,$20,$60
- db (SFX_08_6a - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_6c - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_68 - SFX_Headers_08) / 3,$40,$80
- db (SFX_08_69 - SFX_Headers_08) / 3,$f0,$e0
- db (SFX_08_6d - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_6a - SFX_Headers_08) / 3,$f0,$60
- db (SFX_08_68 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_76 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_47 - SFX_Headers_08) / 3,$01,$a0
- db (SFX_08_53 - SFX_Headers_08) / 3,$f0,$20
- db (SFX_08_63 - SFX_Headers_08) / 3,$01,$c0
- db (SFX_08_63 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_5a - SFX_Headers_08) / 3,$00,$e0
- db (SFX_08_66 - SFX_Headers_08) / 3,$01,$60
- db (SFX_08_66 - SFX_Headers_08) / 3,$20,$40
- db (SFX_08_64 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_64 - SFX_Headers_08) / 3,$40,$c0
- db (SFX_08_5b - SFX_Headers_08) / 3,$03,$60
- db (SFX_08_65 - SFX_Headers_08) / 3,$11,$e0
- db (SFX_08_52 - SFX_Headers_08) / 3,$20,$e0
- db (SFX_08_6e - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_5c - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_5c - SFX_Headers_08) / 3,$11,$a0
- db (SFX_08_5c - SFX_Headers_08) / 3,$01,$c0
- db (SFX_08_53 - SFX_Headers_08) / 3,$14,$c0
- db (SFX_08_5b - SFX_Headers_08) / 3,$02,$a0
- db (SFX_08_69 - SFX_Headers_08) / 3,$f0,$80
- db (SFX_08_69 - SFX_Headers_08) / 3,$20,$c0
- db (SFX_08_6f - SFX_Headers_08) / 3,$00,$20
- db (SFX_08_6f - SFX_Headers_08) / 3,$20,$80
- db (SFX_08_6e - SFX_Headers_08) / 3,$12,$60
- db (SFX_08_66 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_54 - SFX_Headers_08) / 3,$01,$e0
- db (SFX_08_69 - SFX_Headers_08) / 3,$0f,$e0
- db (SFX_08_69 - SFX_Headers_08) / 3,$11,$20
- db (SFX_08_50 - SFX_Headers_08) / 3,$10,$40
- db (SFX_08_4f - SFX_Headers_08) / 3,$10,$c0
- db (SFX_08_54 - SFX_Headers_08) / 3,$00,$20
- db (SFX_08_70 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_75 - SFX_Headers_08) / 3,$11,$18
- db (SFX_08_49 - SFX_Headers_08) / 3,$20,$c0
- db (SFX_08_48 - SFX_Headers_08) / 3,$20,$c0
- db (SFX_08_65 - SFX_Headers_08) / 3,$00,$10
- db (SFX_08_66 - SFX_Headers_08) / 3,$f0,$20
- db (SFX_08_73 - SFX_Headers_08) / 3,$f0,$c0
- db (SFX_08_51 - SFX_Headers_08) / 3,$f0,$e0
- db (SFX_08_49 - SFX_Headers_08) / 3,$f0,$40
- db (SFX_08_71 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_73 - SFX_Headers_08) / 3,$80,$40
- db (SFX_08_73 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_54 - SFX_Headers_08) / 3,$11,$20
- db (SFX_08_54 - SFX_Headers_08) / 3,$22,$10
- db (SFX_08_5b - SFX_Headers_08) / 3,$f1,$ff
- db (SFX_08_53 - SFX_Headers_08) / 3,$f1,$ff
- db (SFX_08_54 - SFX_Headers_08) / 3,$33,$30
- db (SFX_08_72 - SFX_Headers_08) / 3,$40,$c0
- db (SFX_08_4e - SFX_Headers_08) / 3,$20,$20
- db (SFX_08_4e - SFX_Headers_08) / 3,$f0,$10
- db (SFX_08_4f - SFX_Headers_08) / 3,$f8,$10
- db (SFX_08_51 - SFX_Headers_08) / 3,$f0,$10
- db (SFX_08_65 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_58 - SFX_Headers_08) / 3,$00,$c0
- db (SFX_08_72 - SFX_Headers_08) / 3,$c0,$ff
- db (SFX_08_49 - SFX_Headers_08) / 3,$f2,$20
- db (SFX_08_74 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_74 - SFX_Headers_08) / 3,$00,$40
- db (SFX_08_49 - SFX_Headers_08) / 3,$00,$40
- db (SFX_08_51 - SFX_Headers_08) / 3,$10,$ff
- db (SFX_08_6a - SFX_Headers_08) / 3,$20,$20
- db (SFX_08_72 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_69 - SFX_Headers_08) / 3,$1f,$20
- db (SFX_08_65 - SFX_Headers_08) / 3,$2f,$80
- db (SFX_08_4f - SFX_Headers_08) / 3,$1f,$ff
- db (SFX_08_6b - SFX_Headers_08) / 3,$1f,$60
- db (SFX_08_66 - SFX_Headers_08) / 3,$1e,$20
- db (SFX_08_66 - SFX_Headers_08) / 3,$1f,$18
- db (SFX_08_54 - SFX_Headers_08) / 3,$0f,$80
- db (SFX_08_49 - SFX_Headers_08) / 3,$f8,$10
- db (SFX_08_48 - SFX_Headers_08) / 3,$18,$20
- db (SFX_08_72 - SFX_Headers_08) / 3,$08,$40
- db (SFX_08_57 - SFX_Headers_08) / 3,$01,$e0
- db (SFX_08_51 - SFX_Headers_08) / 3,$09,$ff
- db (SFX_08_75 - SFX_Headers_08) / 3,$42,$01
- db (SFX_08_5c - SFX_Headers_08) / 3,$00,$ff
- db (SFX_08_72 - SFX_Headers_08) / 3,$08,$e0
- db (SFX_08_64 - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_49 - SFX_Headers_08) / 3,$88,$10
- db (SFX_08_65 - SFX_Headers_08) / 3,$48,$ff
- db (SFX_08_48 - SFX_Headers_08) / 3,$ff,$ff
- db (SFX_08_64 - SFX_Headers_08) / 3,$ff,$10
- db (SFX_08_48 - SFX_Headers_08) / 3,$ff,$04
- db (SFX_08_5c - SFX_Headers_08) / 3,$01,$ff
- db (SFX_08_53 - SFX_Headers_08) / 3,$f8,$ff
- db (SFX_08_4c - SFX_Headers_08) / 3,$f0,$f0
- db (SFX_08_4f - SFX_Headers_08) / 3,$08,$10
- db (SFX_08_4d - SFX_Headers_08) / 3,$f0,$ff
- db (SFX_08_5a - SFX_Headers_08) / 3,$f0,$ff
- db (SFX_08_74 - SFX_Headers_08) / 3,$10,$ff
- db (SFX_08_4e - SFX_Headers_08) / 3,$f0,$20
- db (SFX_08_6b - SFX_Headers_08) / 3,$f0,$60
- db (SFX_08_61 - SFX_Headers_08) / 3,$12,$10
- db (SFX_08_76 - SFX_Headers_08) / 3,$f0,$20
- db (SFX_08_5e - SFX_Headers_08) / 3,$12,$ff
- db (SFX_08_71 - SFX_Headers_08) / 3,$80,$04
- db (SFX_08_73 - SFX_Headers_08) / 3,$f0,$10
- db (SFX_08_69 - SFX_Headers_08) / 3,$f8,$ff
- db (SFX_08_66 - SFX_Headers_08) / 3,$f0,$ff
- db (SFX_08_51 - SFX_Headers_08) / 3,$01,$ff
- db (SFX_08_6c - SFX_Headers_08) / 3,$d8,$04
- db (SFX_08_4b - SFX_Headers_08) / 3,$00,$80
- db (SFX_08_4b - SFX_Headers_08) / 3,$00,$80
+ db SFX_BATTLE_0A,$00,$80
+ db SFX_BATTLE_0C,$10,$80
+ db SFX_BATTLE_1D,$00,$80
+ db SFX_BATTLE_0B,$01,$80
+ db SFX_BATTLE_0D,$00,$40
+ db SFX_BATTLE_37,$00,$ff
+ db SFX_BATTLE_0D,$10,$60
+ db SFX_BATTLE_0D,$20,$80
+ db SFX_BATTLE_0D,$00,$a0
+ db SFX_BATTLE_10,$00,$80
+ db SFX_BATTLE_0F,$20,$40
+ db SFX_BATTLE_0F,$00,$80
+ db SFX_BATTLE_0E,$00,$a0
+ db SFX_BATTLE_11,$10,$c0
+ db SFX_BATTLE_11,$00,$a0
+ db SFX_BATTLE_12,$00,$c0
+ db SFX_BATTLE_12,$10,$a0
+ db SFX_BATTLE_13,$00,$e0
+ db SFX_BATTLE_11,$20,$c0
+ db SFX_BATTLE_14,$00,$80
+ db SFX_BATTLE_22,$00,$80
+ db SFX_BATTLE_15,$01,$80
+ db SFX_BATTLE_20,$00,$80
+ db SFX_BATTLE_17,$f0,$40
+ db SFX_BATTLE_1A,$00,$80
+ db SFX_BATTLE_17,$00,$80
+ db SFX_BATTLE_21,$10,$80
+ db SFX_BATTLE_1B,$01,$a0
+ db SFX_BATTLE_18,$00,$80
+ db SFX_BATTLE_1E,$00,$60
+ db SFX_BATTLE_1E,$01,$40
+ db SFX_BATTLE_1F,$00,$a0
+ db SFX_BATTLE_1A,$10,$a0
+ db SFX_BATTLE_20,$00,$c0
+ db SFX_BATTLE_14,$10,$60
+ db SFX_BATTLE_1A,$00,$a0
+ db SFX_BATTLE_22,$11,$c0
+ db SFX_BATTLE_1A,$20,$c0
+ db SFX_BATTLE_21,$00,$80
+ db SFX_BATTLE_1B,$00,$80
+ db SFX_BATTLE_1B,$20,$c0
+ db SFX_BATTLE_19,$00,$80
+ db SFX_BATTLE_31,$ff,$40
+ db SFX_BATTLE_1E,$00,$80
+ db SFX_BATTLE_0B,$00,$c0
+ db SFX_BATTLE_0B,$00,$40
+ db SFX_BATTLE_35,$00,$80
+ db SFX_BATTLE_27,$40,$60
+ db SFX_BATTLE_27,$00,$80
+ db SFX_BATTLE_27,$ff,$40
+ db SFX_BATTLE_2A,$80,$c0
+ db SFX_BATTLE_19,$10,$a0
+ db SFX_BATTLE_19,$21,$e0
+ db SFX_BATTLE_29,$00,$80
+ db SFX_BATTLE_24,$20,$60
+ db SFX_BATTLE_2A,$00,$80
+ db SFX_BATTLE_2C,$00,$80
+ db SFX_BATTLE_28,$40,$80
+ db SFX_BATTLE_29,$f0,$e0
+ db SFX_BATTLE_2D,$00,$80
+ db SFX_BATTLE_2A,$f0,$60
+ db SFX_BATTLE_28,$00,$80
+ db SFX_BATTLE_36,$00,$80
+ db SFX_BATTLE_07,$01,$a0
+ db SFX_BATTLE_13,$f0,$20
+ db SFX_BATTLE_23,$01,$c0
+ db SFX_BATTLE_23,$00,$80
+ db SFX_BATTLE_1A,$00,$e0
+ db SFX_BATTLE_26,$01,$60
+ db SFX_BATTLE_26,$20,$40
+ db SFX_BATTLE_24,$00,$80
+ db SFX_BATTLE_24,$40,$c0
+ db SFX_BATTLE_1B,$03,$60
+ db SFX_BATTLE_25,$11,$e0
+ db SFX_BATTLE_12,$20,$e0
+ db SFX_BATTLE_2E,$00,$80
+ db SFX_BATTLE_1C,$00,$80
+ db SFX_BATTLE_1C,$11,$a0
+ db SFX_BATTLE_1C,$01,$c0
+ db SFX_BATTLE_13,$14,$c0
+ db SFX_BATTLE_1B,$02,$a0
+ db SFX_BATTLE_29,$f0,$80
+ db SFX_BATTLE_29,$20,$c0
+ db SFX_BATTLE_2F,$00,$20
+ db SFX_BATTLE_2F,$20,$80
+ db SFX_BATTLE_2E,$12,$60
+ db SFX_BATTLE_26,$00,$80
+ db SFX_BATTLE_14,$01,$e0
+ db SFX_BATTLE_29,$0f,$e0
+ db SFX_BATTLE_29,$11,$20
+ db SFX_BATTLE_10,$10,$40
+ db SFX_BATTLE_0F,$10,$c0
+ db SFX_BATTLE_14,$00,$20
+ db SFX_BATTLE_30,$00,$80
+ db SFX_BATTLE_35,$11,$18
+ db SFX_BATTLE_09,$20,$c0
+ db SFX_BATTLE_08,$20,$c0
+ db SFX_BATTLE_25,$00,$10
+ db SFX_BATTLE_26,$f0,$20
+ db SFX_BATTLE_33,$f0,$c0
+ db SFX_BATTLE_11,$f0,$e0
+ db SFX_BATTLE_09,$f0,$40
+ db SFX_BATTLE_31,$00,$80
+ db SFX_BATTLE_33,$80,$40
+ db SFX_BATTLE_33,$00,$80
+ db SFX_BATTLE_14,$11,$20
+ db SFX_BATTLE_14,$22,$10
+ db SFX_BATTLE_1B,$f1,$ff
+ db SFX_BATTLE_13,$f1,$ff
+ db SFX_BATTLE_14,$33,$30
+ db SFX_BATTLE_32,$40,$c0
+ db SFX_BATTLE_0E,$20,$20
+ db SFX_BATTLE_0E,$f0,$10
+ db SFX_BATTLE_0F,$f8,$10
+ db SFX_BATTLE_11,$f0,$10
+ db SFX_BATTLE_25,$00,$80
+ db SFX_BATTLE_18,$00,$c0
+ db SFX_BATTLE_32,$c0,$ff
+ db SFX_BATTLE_09,$f2,$20
+ db SFX_BATTLE_34,$00,$80
+ db SFX_BATTLE_34,$00,$40
+ db SFX_BATTLE_09,$00,$40
+ db SFX_BATTLE_11,$10,$ff
+ db SFX_BATTLE_2A,$20,$20
+ db SFX_BATTLE_32,$00,$80
+ db SFX_BATTLE_29,$1f,$20
+ db SFX_BATTLE_25,$2f,$80
+ db SFX_BATTLE_0F,$1f,$ff
+ db SFX_BATTLE_2B,$1f,$60
+ db SFX_BATTLE_26,$1e,$20
+ db SFX_BATTLE_26,$1f,$18
+ db SFX_BATTLE_14,$0f,$80
+ db SFX_BATTLE_09,$f8,$10
+ db SFX_BATTLE_08,$18,$20
+ db SFX_BATTLE_32,$08,$40
+ db SFX_BATTLE_17,$01,$e0
+ db SFX_BATTLE_11,$09,$ff
+ db SFX_BATTLE_35,$42,$01
+ db SFX_BATTLE_1C,$00,$ff
+ db SFX_BATTLE_32,$08,$e0
+ db SFX_BATTLE_24,$00,$80
+ db SFX_BATTLE_09,$88,$10
+ db SFX_BATTLE_25,$48,$ff
+ db SFX_BATTLE_08,$ff,$ff
+ db SFX_BATTLE_24,$ff,$10
+ db SFX_BATTLE_08,$ff,$04
+ db SFX_BATTLE_1C,$01,$ff
+ db SFX_BATTLE_13,$f8,$ff
+ db SFX_BATTLE_0C,$f0,$f0
+ db SFX_BATTLE_0F,$08,$10
+ db SFX_BATTLE_0D,$f0,$ff
+ db SFX_BATTLE_1A,$f0,$ff
+ db SFX_BATTLE_34,$10,$ff
+ db SFX_BATTLE_0E,$f0,$20
+ db SFX_BATTLE_2B,$f0,$60
+ db SFX_BATTLE_21,$12,$10
+ db SFX_BATTLE_36,$f0,$20
+ db SFX_BATTLE_1E,$12,$ff
+ db SFX_BATTLE_31,$80,$04
+ db SFX_BATTLE_33,$f0,$10
+ db SFX_BATTLE_29,$f8,$ff
+ db SFX_BATTLE_26,$f0,$ff
+ db SFX_BATTLE_11,$01,$ff
+ db SFX_BATTLE_2C,$d8,$04
+ db SFX_BATTLE_0B,$00,$80
+ db SFX_BATTLE_0B,$00,$80
CopyPicTiles: ; 79aae (1e:5aae)
ld a, [H_WHOSETURN]
@@ -2929,7 +2929,7 @@ TossBallAnimation: ; 79e16 (1e:5e16)
ld a,TOSS_ANIM
ld [W_ANIMATIONID],a
call PlayAnimation
- ld a,(SFX_08_43 - SFX_Headers_08) / 3
+ ld a,SFX_BATTLE_03
call PlaySound
ld a,BLOCKBALL_ANIM
ld [W_ANIMATIONID],a
@@ -2945,15 +2945,15 @@ PlayApplyingAttackSound: ; 79e6a (1e:5e6a)
cp $a
ld a, $20
ld b, $30
- ld c, (SFX_08_50 - SFX_Headers_08) / 3
+ ld c, SFX_BATTLE_10
jr z, .asm_79e8b
ld a, $e0
ld b, $ff
- ld c, (SFX_08_5a - SFX_Headers_08) / 3
+ ld c, SFX_BATTLE_1A
jr nc, .asm_79e8b
ld a, $50
ld b, $1
- ld c, (SFX_08_51 - SFX_Headers_08) / 3
+ ld c, SFX_BATTLE_11
.asm_79e8b
ld [wc0f1], a
ld a, b
diff --git a/engine/battle/common_text.asm b/engine/battle/common_text.asm
index 11309a86..41e402f3 100644
--- a/engine/battle/common_text.asm
+++ b/engine/battle/common_text.asm
@@ -64,7 +64,7 @@ PrintBeginningBattleText: ; 58d99 (16:4d99)
ld [wc0f1], a
ld a, $80
ld [wc0f2], a
- ld a, (SFX_08_77 - SFX_Headers_08) / 3
+ ld a, SFX_BATTLE_37
call PlaySound
jp WaitForSoundToFinish
.done
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 3cf3c9e9..075bc179 100755
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -355,7 +355,7 @@ EnemyRan: ; 3c202 (f:4202)
ld hl, EnemyRanText
.printText
call PrintText
- ld a, (SFX_08_44 - SFX_Headers_08) / 3
+ ld a, SFX_BATTLE_04
call PlaySoundWaitForCurrent
xor a
ld [H_WHOSETURN], a
@@ -864,13 +864,13 @@ FaintEnemyPokemon: ; 0x3c567
xor a
ld [wc0f1], a
ld [wc0f2], a
- ld a, (SFX_08_48 - SFX_Headers_08) / 3 ; SFX_FALL?
+ ld a, SFX_BATTLE_08 ; SFX_FALL?
call PlaySoundWaitForCurrent
.sfxwait
ld a, [wc02a]
- cp (SFX_08_48 - SFX_Headers_08) / 3
+ cp SFX_BATTLE_08
jr z, .sfxwait
- ld a, (SFX_08_43 - SFX_Headers_08) / 3 ; SFX_DROP
+ ld a, SFX_BATTLE_03 ; SFX_DROP
call PlaySound
call WaitForSoundToFinish
jr .sfxplayed
@@ -1678,7 +1678,7 @@ TryRunningFromBattle: ; 3cab9 (f:4ab9)
dec a
.playSound
ld [wBattleResult], a
- ld a, (SFX_08_44 - SFX_Headers_08) / 3
+ ld a, SFX_BATTLE_04
call PlaySoundWaitForCurrent
ld hl, GotAwayText
call PrintText
diff --git a/engine/battle/trainer_ai.asm b/engine/battle/trainer_ai.asm
index a53f00f6..c803a870 100644
--- a/engine/battle/trainer_ai.asm
+++ b/engine/battle/trainer_ai.asm
@@ -553,7 +553,7 @@ DecrementAICount: ; 3a695 (e:6695)
ret
AIPlayRestoringSFX: ; 3a69b (e:669b)
- ld a,(SFX_08_3e - SFX_Headers_08) / 3
+ ld a,SFX_HEAL_AILMENT
jp PlaySoundWaitForCurrent
AIUseFullRestore: ; 3a6a0 (e:66a0)
diff --git a/engine/evolution.asm b/engine/evolution.asm
index d110110a..a39f5a97 100755
--- a/engine/evolution.asm
+++ b/engine/evolution.asm
@@ -14,7 +14,7 @@ EvolveMon: ; 7bde9 (1e:7de9)
call PlaySound
ld a, $1
ld [H_AUTOBGTRANSFERENABLED], a
- ld a, (SFX_08_3c - SFX_Headers_08) / 3
+ ld a, SFX_TINK
call PlaySound
call Delay3
xor a
diff --git a/engine/evos_moves.asm b/engine/evos_moves.asm
index f8a4c234..3129b560 100755
--- a/engine/evos_moves.asm
+++ b/engine/evos_moves.asm
@@ -146,7 +146,7 @@ Evolution_PartyMonLoop: ; loop over party mons
push hl
ld hl, IntoText
call PrintText_NoCreatingTextBox
- ld a, (SFX_02_3b - SFX_Headers_02) / 3
+ ld a, SFX_GET_ITEM_2
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
ld c, 40
diff --git a/engine/gamefreak.asm b/engine/gamefreak.asm
index 38c66793..49c938f7 100755
--- a/engine/gamefreak.asm
+++ b/engine/gamefreak.asm
@@ -26,7 +26,7 @@ LoadShootingStarGraphics: ; 70000 (1c:4000)
AnimateShootingStar: ; 70044 (1c:4044)
call LoadShootingStarGraphics
- ld a, (SFX_1f_67 - SFX_Headers_1f) / 3
+ ld a, SFX_SHOOTING_STAR
call PlaySound
; Move the big star down and left across the screen.
diff --git a/engine/hidden_object_functions17.asm b/engine/hidden_object_functions17.asm
index 44941d36..94b37193 100755
--- a/engine/hidden_object_functions17.asm
+++ b/engine/hidden_object_functions17.asm
@@ -423,7 +423,7 @@ VermilionGymTrashSuccesText1: ; 5dec8 (17:5ec8)
TX_FAR _VermilionGymTrashSuccesText1
TX_ASM
call WaitForSoundToFinish
- ld a, (SFX_02_49 - SFX_Headers_02) / 3
+ ld a, SFX_SWITCH
call PlaySound
call WaitForSoundToFinish
jp TextScriptEnd
@@ -437,7 +437,7 @@ VermilionGymTrashSuccesText2: ; 5dedb (17:5edb)
VermilionGymTrashSuccesPlaySfx: ; 5dee0 (17:5ee0)
TX_ASM
call WaitForSoundToFinish
- ld a, (SFX_02_49 - SFX_Headers_02) / 3
+ ld a, SFX_SWITCH
call PlaySound
call WaitForSoundToFinish
jp TextScriptEnd
@@ -446,7 +446,7 @@ VermilionGymTrashSuccesText3: ; 5deef (17:5eef)
TX_FAR _VermilionGymTrashSuccesText3
TX_ASM
call WaitForSoundToFinish
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
call WaitForSoundToFinish
jp TextScriptEnd
@@ -455,7 +455,7 @@ VermilionGymTrashFailText: ; 5df02 (17:5f02)
TX_FAR _VermilionGymTrashFailText
TX_ASM
call WaitForSoundToFinish
- ld a, (SFX_02_51 - SFX_Headers_02) / 3
+ ld a, SFX_DENIED
call PlaySound
call WaitForSoundToFinish
jp TextScriptEnd
diff --git a/engine/hidden_object_functions7.asm b/engine/hidden_object_functions7.asm
index 8e8b27b1..f7deae66 100755
--- a/engine/hidden_object_functions7.asm
+++ b/engine/hidden_object_functions7.asm
@@ -68,7 +68,7 @@ SafariZoneGameOver: ; 1e9b0 (7:69b0)
dec a
call PlaySound
ld c, BANK(SFX_02_5f)
- ld a, (SFX_02_5f - SFX_Headers_02) / 3
+ ld a, SFX_SAFARI_ZONE_PA
call PlayMusic
.asm_1e9c2
ld a, [wc02a]
@@ -214,7 +214,7 @@ CinnabarGymQuiz_1ea92: ; 1ea92 (7:6a92)
jp CinnabarGymQuiz_1eb0a
.asm_1eab8
call WaitForSoundToFinish
- ld a, (SFX_02_51 - SFX_Headers_02) / 3
+ ld a, SFX_DENIED
call PlaySound
call WaitForSoundToFinish
ld hl, CinnabarGymQuizIncorrectText
@@ -247,7 +247,7 @@ CinnabarGymQuizCorrectText: ; 1eae3 (7:6ae3)
and a
jp nz, TextScriptEnd
call WaitForSoundToFinish
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
call WaitForSoundToFinish
jp TextScriptEnd
@@ -335,22 +335,22 @@ BillsHousePC: ; 1eb6e (7:6b6e)
tx_pre BillsHouseInitiatedText
ld c, 32
call DelayFrames
- ld a, (SFX_02_3c - SFX_Headers_02) / 3
+ ld a, SFX_TINK
call PlaySound
call WaitForSoundToFinish
ld c, 80
call DelayFrames
- ld a, (SFX_02_48 - SFX_Headers_02) / 3
+ ld a, SFX_SHRINK
call PlaySound
call WaitForSoundToFinish
ld c, 48
call DelayFrames
- ld a, (SFX_02_3c - SFX_Headers_02) / 3
+ ld a, SFX_TINK
call PlaySound
call WaitForSoundToFinish
ld c, 32
call DelayFrames
- ld a, (SFX_02_3a - SFX_Headers_02) / 3
+ ld a, SFX_GET_ITEM_1
call PlaySound
call WaitForSoundToFinish
call PlayDefaultMusic
@@ -376,7 +376,7 @@ BillsHouseInitiatedText: ; 1ebe2 (7:6be2)
call PlaySound
ld c, 16
call DelayFrames
- ld a, (SFX_02_49 - SFX_Headers_02) / 3
+ ld a, SFX_SWITCH
call PlaySound
call WaitForSoundToFinish
ld c, 60
diff --git a/engine/intro.asm b/engine/intro.asm
index 79cc2101..6b5c46c9 100755
--- a/engine/intro.asm
+++ b/engine/intro.asm
@@ -35,14 +35,14 @@ PlayIntroScene: ; 4169d (10:569d)
ret c
; hip
- ld a, (SFX_1f_5f - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_HIP
call PlaySound
xor a
ld [wd09f], a
ld de, IntroNidorinoAnimation1
call AnimateIntroNidorino
; hop
- ld a, (SFX_1f_60 - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_HOP
call PlaySound
ld de, IntroNidorinoAnimation2
call AnimateIntroNidorino
@@ -51,12 +51,12 @@ PlayIntroScene: ; 4169d (10:569d)
ret c
; hip
- ld a, (SFX_1f_5f - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_HIP
call PlaySound
ld de, IntroNidorinoAnimation1
call AnimateIntroNidorino
; hop
- ld a, (SFX_1f_60 - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_HOP
call PlaySound
ld de, IntroNidorinoAnimation2
call AnimateIntroNidorino
@@ -67,7 +67,7 @@ PlayIntroScene: ; 4169d (10:569d)
; raise
ld b, $4
call IntroCopyTiles
- ld a, (SFX_1f_61 - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_RAISE
call PlaySound
ld de, $401 ; move Gengar left by 8 pixels
call IntroMoveMon
@@ -78,12 +78,12 @@ PlayIntroScene: ; 4169d (10:569d)
; slash
ld b, $5
call IntroCopyTiles
- ld a, (SFX_1f_62 - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_CRASH
call PlaySound
ld de, $800 ; move Gengar right by 16 pixels
call IntroMoveMon
; hip
- ld a, (SFX_1f_5f - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_HIP
call PlaySound
ld a, $24
ld [wd09f], a
@@ -102,14 +102,14 @@ PlayIntroScene: ; 4169d (10:569d)
ret c
; hip
- ld a, (SFX_1f_5f - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_HIP
call PlaySound
xor a
ld [wd09f], a
ld de, IntroNidorinoAnimation4
call AnimateIntroNidorino
; hop
- ld a, (SFX_1f_60 - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_HOP
call PlaySound
ld de, IntroNidorinoAnimation5
call AnimateIntroNidorino
@@ -126,7 +126,7 @@ PlayIntroScene: ; 4169d (10:569d)
ret c
; lunge
- ld a, (SFX_1f_5e - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_LUNGE
call PlaySound
ld a, $48
ld [wd09f], a
diff --git a/engine/items/items.asm b/engine/items/items.asm
index bc8d16fa..704e6034 100755
--- a/engine/items/items.asm
+++ b/engine/items/items.asm
@@ -644,7 +644,7 @@ ItemUseEvoStone: ; da5b (3:5a5b)
ld [wcf91],a
ld a,$01
ld [wForceEvolution],a
- ld a,(SFX_02_3e - SFX_Headers_02) / 3
+ ld a,SFX_HEAL_AILMENT
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
callab TryEvolvingMon ; try to evolve pokemon
@@ -917,7 +917,7 @@ ItemUseMedicine: ; dabb (3:5abb)
ld a,[wWhichPokemon]
ld bc,2 * 20
call AddNTimes ; calculate coordinates of HP bar of pokemon that used Softboiled
- ld a,(SFX_02_3d - SFX_Headers_02) / 3
+ ld a,SFX_HEAL_HP
call PlaySoundWaitForCurrent
ld a,[hFlags_0xFFF6]
set 0,a
@@ -1067,7 +1067,7 @@ ItemUseMedicine: ; dabb (3:5abb)
jr c,.playStatusAilmentCuringSound
cp a,FULL_HEAL
jr z,.playStatusAilmentCuringSound
- ld a,(SFX_02_3d - SFX_Headers_02) / 3 ; HP healing sound
+ ld a,SFX_HEAL_HP
call PlaySoundWaitForCurrent
ld a,[hFlags_0xFFF6]
set 0,a
@@ -1089,7 +1089,7 @@ ItemUseMedicine: ; dabb (3:5abb)
ld [wPartyMenuTypeOrMessageID],a
jr .showHealingItemMessage
.playStatusAilmentCuringSound
- ld a,(SFX_02_3e - SFX_Headers_02) / 3 ; status ailment curing sound
+ ld a,SFX_HEAL_AILMENT
call PlaySoundWaitForCurrent
.showHealingItemMessage
xor a
@@ -1178,7 +1178,7 @@ ItemUseMedicine: ; dabb (3:5abb)
ld de,wcf4b
ld bc,10
call CopyData ; copy the stat's name to wcf4b
- ld a,(SFX_02_3e - SFX_Headers_02) / 3
+ ld a,SFX_HEAL_AILMENT
call PlaySound
ld hl,VitaminStatRoseText
call PrintText
@@ -1720,7 +1720,7 @@ PlayedFluteHadEffectText: ; e215 (3:6215)
; play out-of-battle pokeflute music
ld a,$ff
call PlaySound ; turn off music
- ld a, (SFX_02_5e - SFX_Headers_02) / 3
+ ld a, SFX_POKEFLUE
ld c, BANK(SFX_02_5e)
call PlayMusic
.musicWaitLoop ; wait for music to finish playing
@@ -1824,7 +1824,7 @@ FishingInit: ; e2b4 (3:62b4)
call ItemUseReloadOverworldData
ld hl,ItemUseText00
call PrintText
- ld a,(SFX_02_3e - SFX_Headers_02) / 3
+ ld a,SFX_HEAL_AILMENT
call PlaySound
ld c,80
call DelayFrames
@@ -1847,9 +1847,9 @@ ItemUseItemfinder: ; e2e1 (3:62e1)
jr nc,.printText ; if no hidden items
ld c,4
.loop
- ld a,(SFX_02_4a - SFX_Headers_02) / 3
+ ld a,SFX_HEALING_MACHINE
call PlaySoundWaitForCurrent
- ld a,(SFX_02_5a - SFX_Headers_02) / 3
+ ld a,SFX_PURCHASE
call PlaySoundWaitForCurrent
dec c
jr nz,.loop
@@ -1951,7 +1951,7 @@ ItemUsePPRestore: ; e31e (3:631e)
ld bc,4
call CopyData ; copy party data to in-battle data
.skipUpdatingInBattleData
- ld a,(SFX_02_3e - SFX_Headers_02) / 3
+ ld a,SFX_HEAL_AILMENT
call PlaySound
ld hl,PPRestoredText
call PrintText
@@ -2146,7 +2146,7 @@ ItemUseTMHM: ; e479 (3:6479)
and a ; can the pokemon learn the move?
jr nz,.checkIfAlreadyLearnedMove
; if the pokemon can't learn the move
- ld a,(SFX_02_51 - SFX_Headers_02) / 3
+ ld a,SFX_DENIED
call PlaySoundWaitForCurrent
ld hl,MonCannotLearnMachineMoveText
call PrintText
@@ -2186,7 +2186,7 @@ MonCannotLearnMachineMoveText: ; e55e (3:655e)
PrintItemUseTextAndRemoveItem: ; e563 (3:6563)
ld hl,ItemUseText00
call PrintText
- ld a,(SFX_02_3e - SFX_Headers_02) / 3
+ ld a,SFX_HEAL_AILMENT
call PlaySound
call WaitForTextScrollButtonPress ; wait for button press
diff --git a/engine/learn_move.asm b/engine/learn_move.asm
index 1c0e038c..abc3b7d4 100755
--- a/engine/learn_move.asm
+++ b/engine/learn_move.asm
@@ -207,7 +207,7 @@ OneTwoAndText: ; 6fc8 (1:6fc8)
TX_FAR _OneTwoAndText
db $a
TX_ASM
- ld a, (SFX_02_58 - SFX_Headers_02) / 3
+ ld a, SFX_SWAP
call PlaySoundWaitForCurrent
ld hl, PoofText
ret
diff --git a/engine/menu/main_menu.asm b/engine/menu/main_menu.asm
index 5dc6e61f..eeaa4594 100755
--- a/engine/menu/main_menu.asm
+++ b/engine/menu/main_menu.asm
@@ -483,7 +483,7 @@ DisplayOptionMenu: ; 5e8a (1:5e8a)
cp a,16 ; is the cursor on Cancel?
jr nz,.loop
.exitMenu
- ld a,(SFX_02_40 - SFX_Headers_02) / 3
+ ld a,SFX_PRESS_AB
call PlaySound
ret
.eraseOldMenuCursor
diff --git a/engine/menu/naming_screen.asm b/engine/menu/naming_screen.asm
index 20deb834..9a608491 100755
--- a/engine/menu/naming_screen.asm
+++ b/engine/menu/naming_screen.asm
@@ -262,7 +262,7 @@ DisplayNamingScreen: ; 6596 (1:6596)
ld a, [wHPBarNewHP]
ld [hli], a
ld [hl], $50
- ld a, (SFX_02_40 - SFX_Headers_02) / 3
+ ld a, SFX_PRESS_AB
call PlaySound
ret
.pressedB
diff --git a/engine/menu/pc.asm b/engine/menu/pc.asm
index 8ee40c7c..b5281964 100755
--- a/engine/menu/pc.asm
+++ b/engine/menu/pc.asm
@@ -1,6 +1,6 @@
ActivatePC: ; 17e2c (5:7e2c)
call SaveScreenTilesToBuffer2
- ld a, (SFX_02_45 - SFX_Headers_02) / 3
+ ld a, SFX_TURN_ON_PC
call PlaySound
ld hl, TurnedOnPC1Text
call PrintText
@@ -51,7 +51,7 @@ PCMainMenu: ; 17e48 (5:7e48)
ld hl, wFlags_0xcd60
res 5, [hl]
set 3, [hl]
- ld a, (SFX_02_47 - SFX_Headers_02) / 3
+ ld a, SFX_ENTER_PC
call PlaySound
call WaitForSoundToFinish
ld hl, AccessedMyPCText
@@ -59,19 +59,19 @@ PCMainMenu: ; 17e48 (5:7e48)
callba PlayerPC
jr ReloadMainMenu
OaksPC: ; 17ec0 (5:7ec0)
- ld a, (SFX_02_47 - SFX_Headers_02) / 3
+ ld a, SFX_ENTER_PC
call PlaySound
call WaitForSoundToFinish
callba OpenOaksPC
jr ReloadMainMenu
PKMNLeague: ; 17ed2 (5:7ed2)
- ld a, (SFX_02_47 - SFX_Headers_02) / 3
+ ld a, SFX_ENTER_PC
call PlaySound
call WaitForSoundToFinish
callba PKMNLeaguePC
jr ReloadMainMenu
BillsPC: ; 17ee4 (5:7ee4)
- ld a, (SFX_02_47 - SFX_Headers_02) / 3
+ ld a, SFX_ENTER_PC
call PlaySound
call WaitForSoundToFinish
ld a, [wd7f1] ;has to do with having met Bill
@@ -91,7 +91,7 @@ ReloadMainMenu: ; 17f06 (5:7f06)
call UpdateSprites
jp PCMainMenu
LogOff: ; 17f13 (5:7f13)
- ld a, (SFX_02_46 - SFX_Headers_02) / 3
+ ld a, SFX_TURN_OFF_PC
call PlaySound
call WaitForSoundToFinish
ld hl, wFlags_0xcd60
diff --git a/engine/menu/players_pc.asm b/engine/menu/players_pc.asm
index 89974dd0..00889e93 100755
--- a/engine/menu/players_pc.asm
+++ b/engine/menu/players_pc.asm
@@ -11,7 +11,7 @@ PlayerPC: ; 78e6 (1:78e6)
bit 3, a ; accessing player's PC through another PC?
jr nz, PlayerPCMenu
; accessing it directly
- ld a, (SFX_02_45 - SFX_Headers_02) / 3
+ ld a, SFX_TURN_ON_PC
call PlaySound
ld hl, TurnedOnPC2Text
call PrintText
@@ -67,7 +67,7 @@ ExitPlayerPC: ; 796d (1:796d)
bit 3, a ; accessing player's PC through another PC?
jr nz, .next
; accessing it directly
- ld a, (SFX_02_46 - SFX_Headers_02) / 3
+ ld a, SFX_TURN_OFF_PC
call PlaySound
call WaitForSoundToFinish
.next
@@ -130,7 +130,7 @@ PlayerPCDeposit: ; 7995 (1:7995)
ld hl, wNumBagItems
call RemoveItemFromInventory
call WaitForSoundToFinish
- ld a, (SFX_02_55 - SFX_Headers_02) / 3
+ ld a, SFX_WITHDRAW_DEPOSIT
call PlaySound
call WaitForSoundToFinish
ld hl, ItemWasStoredText
@@ -184,7 +184,7 @@ PlayerPCWithdraw: ; 7a12 (1:7a12)
ld hl, wNumBoxItems
call RemoveItemFromInventory
call WaitForSoundToFinish
- ld a, (SFX_02_55 - SFX_Headers_02) / 3
+ ld a, SFX_WITHDRAW_DEPOSIT
call PlaySound
call WaitForSoundToFinish
ld hl, WithdrewItemText
diff --git a/engine/menu/start_menu.asm b/engine/menu/start_menu.asm
index 7aa09df7..bd876f5b 100755
--- a/engine/menu/start_menu.asm
+++ b/engine/menu/start_menu.asm
@@ -4,7 +4,7 @@ DisplayStartMenu:: ; 2acd (0:2acd)
ld [MBC1RomBank],a
ld a,[wWalkBikeSurfState] ; walking/biking/surfing
ld [wWalkBikeSurfStateCopy],a
- ld a, (SFX_02_3f - SFX_Headers_02) / 3 ; Start menu sound
+ ld a, SFX_START_MENU
call PlaySound
RedisplayStartMenu:: ; 2adf (0:2adf)
diff --git a/engine/menu/start_sub_menus.asm b/engine/menu/start_sub_menus.asm
index 0036d66e..481c0fbe 100755
--- a/engine/menu/start_sub_menus.asm
+++ b/engine/menu/start_sub_menus.asm
@@ -734,7 +734,7 @@ SwitchPartyMon_ClearGfx: ; 13625 (4:7625)
dec c
jr nz, .clearMonOAMLoop
call WaitForSoundToFinish
- ld a, (SFX_02_58 - SFX_Headers_02) / 3
+ ld a, SFX_SWAP
jp PlaySound
SwitchPartyMon_InitVarOrSwapData: ; 13653 (4:7653)
diff --git a/engine/menu/vending_machine.asm b/engine/menu/vending_machine.asm
index 0f6c6a13..8460889f 100755
--- a/engine/menu/vending_machine.asm
+++ b/engine/menu/vending_machine.asm
@@ -58,7 +58,7 @@ VendingMachineMenu: ; 74ee0 (1d:4ee0)
ld c, 2
call DelayFrames
push bc
- ld a, (SFX_02_53 - SFX_Headers_02) / 3
+ ld a, SFX_PUSH_BOULDER
call PlaySound
pop bc
dec b
diff --git a/engine/oak_speech.asm b/engine/oak_speech.asm
index 9b9b1c7e..be84b99d 100755
--- a/engine/oak_speech.asm
+++ b/engine/oak_speech.asm
@@ -106,7 +106,7 @@ OakSpeech: ; 6115 (1:6115)
.next
ld a,[H_LOADEDROMBANK]
push af
- ld a,(SFX_02_48 - SFX_Headers_02) / 3
+ ld a,SFX_SHRINK
call PlaySound
pop af
ld [H_LOADEDROMBANK],a
diff --git a/engine/overworld/cable_club_npc.asm b/engine/overworld/cable_club_npc.asm
index 86a7ab7d..b9e3102a 100755
--- a/engine/overworld/cable_club_npc.asm
+++ b/engine/overworld/cable_club_npc.asm
@@ -57,7 +57,7 @@ CableClubNPC: ; 71c5 (1:71c5)
jr nz, .choseNo
callab SaveSAVtoSRAM
call WaitForSoundToFinish
- ld a, (SFX_02_5d - SFX_Headers_02) / 3
+ ld a, SFX_SAVE
call PlaySoundWaitForCurrent
ld hl, CableClubNPCPleaseWaitText
call PrintText
diff --git a/engine/overworld/card_key.asm b/engine/overworld/card_key.asm
index 94c1868c..746ea326 100755
--- a/engine/overworld/card_key.asm
+++ b/engine/overworld/card_key.asm
@@ -51,7 +51,7 @@ PrintCardKeyText: ; 52673 (14:6673)
predef ReplaceTileBlock
ld hl, wd126
set 5, [hl]
- ld a, (SFX_1f_57 - SFX_Headers_1f) / 3
+ ld a, SFX_GO_INSIDE
jp PlaySound
.noCardKey
tx_pre_id CardKeyFailText
diff --git a/engine/overworld/cut.asm b/engine/overworld/cut.asm
index f7be269c..293daee7 100755
--- a/engine/overworld/cut.asm
+++ b/engine/overworld/cut.asm
@@ -60,7 +60,7 @@ UsedCut: ; ef54 (3:6f54)
callba Func_79e96
ld a, $1
ld [wUpdateSpritesEnabled], a
- ld a, (SFX_02_56 - SFX_Headers_02) / 3
+ ld a, SFX_CUT
call PlaySound
ld a, $90
ld [hWY], a
diff --git a/engine/overworld/elevator.asm b/engine/overworld/elevator.asm
index 63e9d710..09a38012 100755
--- a/engine/overworld/elevator.asm
+++ b/engine/overworld/elevator.asm
@@ -18,7 +18,7 @@ ShakeElevator: ; 7bf15 (1e:7f15)
ld [hSCY], a
push bc
ld c, BANK(SFX_02_5b)
- ld a, (SFX_02_5b - SFX_Headers_02) / 3
+ ld a, SFX_COLLISION
call PlayMusic
pop bc
ld c, 2
@@ -30,7 +30,7 @@ ShakeElevator: ; 7bf15 (1e:7f15)
ld a, $ff
call PlaySound
ld c, BANK(SFX_02_5f)
- ld a, (SFX_02_5f - SFX_Headers_02) / 3
+ ld a, SFX_SAFARI_ZONE_PA
call PlayMusic
.musicLoop
ld a, [wc02a]
diff --git a/engine/overworld/healing_machine.asm b/engine/overworld/healing_machine.asm
index 303449a1..f9dcc3a5 100755
--- a/engine/overworld/healing_machine.asm
+++ b/engine/overworld/healing_machine.asm
@@ -28,7 +28,7 @@ AnimateHealingMachine: ; 70433 (1c:4433)
ld b, a
.asm_7046e
call CopyHealingMachineOAM
- ld a, (SFX_02_4a - SFX_Headers_02) / 3
+ ld a, SFX_HEALING_MACHINE
call PlaySound
ld c, 30
call DelayFrames
diff --git a/engine/overworld/hidden_items.asm b/engine/overworld/hidden_items.asm
index 3fb4ffca..fee5b5bc 100755
--- a/engine/overworld/hidden_items.asm
+++ b/engine/overworld/hidden_items.asm
@@ -33,7 +33,7 @@ FoundHiddenItemText: ; 7675b (1d:675b)
ld c, a
ld b, $1
predef FlagActionPredef
- ld a, (SFX_02_3b - SFX_Headers_02) / 3
+ ld a, SFX_GET_ITEM_2
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
jp TextScriptEnd
diff --git a/engine/overworld/ledges.asm b/engine/overworld/ledges.asm
index 3a183c0f..51819802 100755
--- a/engine/overworld/ledges.asm
+++ b/engine/overworld/ledges.asm
@@ -50,7 +50,7 @@ HandleLedges: ; 1a672 (6:6672)
ld a, $2
ld [wSimulatedJoypadStatesIndex], a
call LoadHoppingShadowOAM
- ld a, (SFX_02_4e - SFX_Headers_02) / 3
+ ld a, SFX_LEDGE
call PlaySound
ret
diff --git a/engine/overworld/player_animations.asm b/engine/overworld/player_animations.asm
index 98ea466d..5ce2b2a6 100755
--- a/engine/overworld/player_animations.asm
+++ b/engine/overworld/player_animations.asm
@@ -9,7 +9,7 @@ EnterMapAnim: ; 70510 (1c:4510)
bit 7, [hl] ; used fly out of battle?
res 7, [hl]
jr nz, .flyAnimation
- ld a, (SFX_02_4c - SFX_Headers_02) / 3
+ ld a, SFX_TELEPORT_2
call PlaySound
ld hl, wd732
bit 4, [hl] ; used dungeon warp?
@@ -17,7 +17,7 @@ EnterMapAnim: ; 70510 (1c:4510)
pop hl
jr nz, .dungeonWarpAnimation
call PlayerSpinWhileMovingDown
- ld a, (SFX_02_4f - SFX_Headers_02) / 3
+ ld a, SFX_FLY_1
call PlaySound
call IsPlayerStandingOnWarpPadOrHole
ld a, b
@@ -50,7 +50,7 @@ EnterMapAnim: ; 70510 (1c:4510)
ld bc, (BANK(BirdSprite) << 8) + $0c
call CopyVideoData
call LoadBirdSpriteGraphics
- ld a, (SFX_02_50 - SFX_Headers_02) / 3
+ ld a, SFX_FLY_2
call PlaySound
ld hl, wFlyAnimUsingCoordList
xor a ; is using coord list
@@ -99,7 +99,7 @@ _LeaveMapAnim: ; 705ba (1c:45ba)
dec a
jp nz, LeaveMapThroughHoleAnim
.spinWhileMovingUp
- ld a, (SFX_02_4b - SFX_Headers_02) / 3
+ ld a, SFX_TELEPORT_1
call PlaySound
ld hl, wPlayerSpinWhileMovingUpOrDownAnimDeltaY
ld a, -$10
@@ -133,7 +133,7 @@ _LeaveMapAnim: ; 705ba (1c:45ba)
ld [hli], a ; wPlayerSpinInPlaceAnimFrameDelayDelta
xor a
ld [hli], a ; wPlayerSpinInPlaceAnimFrameDelayEndValue
- ld [hl], (SFX_02_4d - SFX_Headers_02) / 3 ; wPlayerSpinInPlaceAnimSoundID
+ ld [hl], SFX_TELEPORT_3 ; wPlayerSpinInPlaceAnimSoundID
ld hl, wFacingDirectionList
call PlayerSpinInPlace
jr .spinWhileMovingUp
@@ -146,7 +146,7 @@ _LeaveMapAnim: ; 705ba (1c:45ba)
ld [hli], a ; wFlyAnimCounter
ld [hl], $c ; wFlyAnimBirdSpriteImageIndex
call DoFlyAnimation
- ld a, (SFX_02_50 - SFX_Headers_02) / 3
+ ld a, SFX_FLY_2
call PlaySound
ld hl, wFlyAnimUsingCoordList
xor a ; is using coord list
diff --git a/engine/overworld/pokemart.asm b/engine/overworld/pokemart.asm
index ebc99eed..d59b2dc7 100755
--- a/engine/overworld/pokemart.asm
+++ b/engine/overworld/pokemart.asm
@@ -190,7 +190,7 @@ DisplayPokemartDialogue_: ; 6c20 (1:6c20)
ld a,1
ld [wBoughtOrSoldItemInMart],a
.skipSettingFlag2
- ld a,(SFX_02_5a - SFX_Headers_02) / 3
+ ld a,SFX_PURCHASE
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
ld hl,PokemartBoughtItemText
diff --git a/engine/save.asm b/engine/save.asm
index 7265fa3c..70295044 100755
--- a/engine/save.asm
+++ b/engine/save.asm
@@ -164,7 +164,7 @@ SaveSAV: ; 7370a (1c:770a)
call DelayFrames
ld hl,GameSavedText
call PrintText
- ld a, (SFX_02_5d - SFX_Headers_02) / 3 ;sound for saved game
+ ld a, SFX_SAVE
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
ld c,30
@@ -380,7 +380,7 @@ ChangeBox:: ; 738a1 (1c:78a1)
call SaveSAVtoSRAM
ld hl, wChangeBoxSavedMapTextPointer
call SetMapTextPointer
- ld a, (SFX_02_5d - SFX_Headers_02) / 3
+ ld a, SFX_SAVE
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
ret
diff --git a/engine/slot_machine.asm b/engine/slot_machine.asm
index cf6ad3d5..990687ff 100755
--- a/engine/slot_machine.asm
+++ b/engine/slot_machine.asm
@@ -116,7 +116,7 @@ MainSlotMachineLoop: ; 37395 (d:7395)
ld [hli], a
ld [hl], a
call WaitForSoundToFinish
- ld a, (SFX_1f_66 - SFX_Headers_1f) / 3
+ ld a, SFX_SLOTS_NEW_SPIN
call PlaySound
ld hl, StartSlotMachineText
call PrintText
@@ -584,7 +584,7 @@ SlotReward15Func: ; 376e5 (d:76e5)
ret
SlotReward100Func: ; 376f3 (d:76f3)
- ld a, (SFX_1f_42 - SFX_Headers_1f) / 3
+ ld a, SFX_GET_KEY_ITEM
call PlaySound
xor a
ld [wSlotMachineFlags], a
@@ -595,7 +595,7 @@ SlotReward100Func: ; 376f3 (d:76f3)
SlotReward300Func: ; 37702 (d:7702)
ld hl, YeahText
call PrintText
- ld a, (SFX_1f_3b - SFX_Headers_1f) / 3
+ ld a, SFX_GET_ITEM_2
call PlaySound
call Random
cp $80
@@ -689,7 +689,7 @@ SlotMachine_PayCoinsToPlayer: ; 3776b (d:776b)
predef AddBCDPredef
call SlotMachine_PrintCreditCoins
call SlotMachine_PrintPayoutCoins
- ld a, (SFX_1f_65 - SFX_Headers_1f) / 3
+ ld a, SFX_SLOTS_REWARD
call PlaySound
ld a, [wAnimCounter]
dec a
@@ -837,7 +837,7 @@ SlotMachine_HandleInputWhileWheelsSpin: ; 37882 (d:7882)
jr z, .skip
.loop
inc [hl]
- ld a, (SFX_1f_64 - SFX_Headers_1f) / 3
+ ld a, SFX_SLOTS_STOP_WHEEL
jp PlaySound
.skip
ld a, [de]
diff --git a/engine/titlescreen.asm b/engine/titlescreen.asm
index 5acdd2c9..729e16bb 100755
--- a/engine/titlescreen.asm
+++ b/engine/titlescreen.asm
@@ -157,7 +157,7 @@ ENDC
ld d, a
cp -3
jr nz, .skipPlayingSound
- ld a, (SFX_1f_62 - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_CRASH
call PlaySound
.skipPlayingSound
ld a, [hli]
@@ -191,7 +191,7 @@ ENDC
call LoadScreenTilesFromBuffer1
ld c, 36
call DelayFrames
- ld a, (SFX_1f_63 - SFX_Headers_1f) / 3
+ ld a, SFX_INTRO_WHOOSH
call PlaySound
; scroll game version in from the right
diff --git a/engine/town_map.asm b/engine/town_map.asm
index 302efa0f..a90aa331 100755
--- a/engine/town_map.asm
+++ b/engine/town_map.asm
@@ -69,7 +69,7 @@ DisplayTownMap: ; 70e3e (1c:4e3e)
ld b, a
and A_BUTTON | B_BUTTON | D_UP | D_DOWN
jr z, .inputLoop
- ld a, (SFX_02_3c - SFX_Headers_02) / 3
+ ld a, SFX_TINK
call PlaySound
bit 6, b
jr nz, .pressedUp
@@ -193,7 +193,7 @@ LoadTownMap_Fly: ; 70f90 (1c:4f90)
jr z, .inputLoop
bit 0, b
jr nz, .pressedA
- ld a, (SFX_02_3c - SFX_Headers_02) / 3
+ ld a, SFX_TINK
call PlaySound
bit 6, b
jr nz, .pressedUp
@@ -201,7 +201,7 @@ LoadTownMap_Fly: ; 70f90 (1c:4f90)
jr nz, .pressedDown
jr .pressedB
.pressedA
- ld a, (SFX_02_3e - SFX_Headers_02) / 3
+ ld a, SFX_HEAL_AILMENT
call PlaySound
ld a, [hl]
ld [wDestinationMap], a
diff --git a/engine/trade.asm b/engine/trade.asm
index 531085b9..68baaa16 100755
--- a/engine/trade.asm
+++ b/engine/trade.asm
@@ -287,7 +287,7 @@ Trade_DrawOpenEndOfLinkCable: ; 41298 (10:5298)
ld b, $7 ; open end of link cable tile ID list index
call CopyTileIDsFromList_ZeroBaseTileID
call Trade_CopyTileMapToVRAM
- ld a, (SFX_02_3d - SFX_Headers_02) / 3
+ ld a, SFX_HEAL_HP
call PlaySound
ld c, 20
.loop
@@ -332,7 +332,7 @@ Trade_AnimateBallEnteringLinkCable: ; 412d2 (10:52d2)
ld c, a
cp $a0
jr nc, .ballSpriteReachedEdgeOfScreen
- ld a, (SFX_02_3c - SFX_Headers_02) / 3
+ ld a, SFX_TINK
call PlaySound
jr .moveBallInsideLinkCableLoop
.ballSpriteReachedEdgeOfScreen