summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio.asm16
-rw-r--r--constants/music_constants.asm176
-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
-rw-r--r--home.asm6
-rw-r--r--home/overworld.asm12
-rw-r--r--home/text.asm14
-rwxr-xr-xmain.asm8
-rwxr-xr-xscripts/celadongamecorner.asm4
-rwxr-xr-xscripts/cinnabargym.asm2
-rwxr-xr-xscripts/daycarem.asm2
-rwxr-xr-xscripts/lance.asm2
-rwxr-xr-xscripts/mansion1.asm2
-rwxr-xr-xscripts/mansion2.asm2
-rwxr-xr-xscripts/museum1f.asm2
-rwxr-xr-xscripts/rockethideout1.asm2
-rwxr-xr-xscripts/rockethideout2.asm2
-rwxr-xr-xscripts/rockethideout3.asm2
-rwxr-xr-xscripts/rockethideout4.asm2
-rwxr-xr-xscripts/route22gate.asm2
-rwxr-xr-xscripts/route23.asm2
-rwxr-xr-xscripts/vermiliondock.asm4
-rwxr-xr-xscripts/vermiliongym.asm2
-rwxr-xr-xscripts/viridiangym.asm2
56 files changed, 487 insertions, 311 deletions
diff --git a/audio.asm b/audio.asm
index aaf4f8ed..27570b93 100644
--- a/audio.asm
+++ b/audio.asm
@@ -538,7 +538,7 @@ INCLUDE "audio/engine_2.asm"
Music_PokeFluteInBattle:: ; 22306 (8:6306)
- ld a, (SFX_08_46 - SFX_Headers_08) / 3 ; PokeFlute outside of battle
+ ld a, SFX_BATTLE_06 ; PokeFlute outside of battle
call PlaySoundWaitForCurrent
ld hl, wc00e
ld de, SFX_08_PokeFlute_Ch1
@@ -583,13 +583,13 @@ PlayPokedexRatingSfx:: ; 7d13b (1f:513b)
jp PlayDefaultMusic
PokedexRatingSfxPointers: ; 7d162 (1f:5162)
- db (SFX_1f_51 - SFX_Headers_1f) / 3, BANK(SFX_1f_51)
- db (SFX_02_41 - SFX_Headers_02) / 3, BANK(SFX_02_41)
- db (SFX_02_3a - SFX_Headers_02) / 3, BANK(SFX_02_3a)
- db (SFX_08_46 - SFX_Headers_08) / 3, BANK(SFX_08_46)
- db (SFX_08_3a - SFX_Headers_08) / 3, BANK(SFX_08_3a)
- db (SFX_02_42 - SFX_Headers_02) / 3, BANK(SFX_02_42)
- db (SFX_02_3b - SFX_Headers_02) / 3, BANK(SFX_02_3b)
+ db SFX_DENIED, BANK(SFX_1f_51)
+ db SFX_POKEDEX_RATING, BANK(SFX_02_41)
+ db SFX_GET_ITEM_1, BANK(SFX_02_3a)
+ db SFX_BATTLE_06, BANK(SFX_08_46)
+ db SFX_LEVEL_UP, BANK(SFX_08_3a)
+ db SFX_GET_KEY_ITEM, BANK(SFX_02_42)
+ db SFX_GET_ITEM_2, BANK(SFX_02_3b)
OwnedMonValues: ; 7d170 (1f:5170)
db 10, 40, 60, 90, 120, 150, $ff
diff --git a/constants/music_constants.asm b/constants/music_constants.asm
index 30d11543..260ccd39 100644
--- a/constants/music_constants.asm
+++ b/constants/music_constants.asm
@@ -4,6 +4,7 @@ music_const: MACRO
\1 EQUS "((\2 - SFX_Headers_02) / 3)"
ENDM
+ ; AUDIO_1
music_const MUSIC_PALLET_TOWN, Music_PalletTown
music_const MUSIC_POKECENTER, Music_Pokecenter
music_const MUSIC_GYM, Music_Gym
@@ -25,6 +26,7 @@ ENDM
music_const MUSIC_ROUTES4, Music_Routes4
music_const MUSIC_INDIGO_PLATEAU, Music_IndigoPlateau
+ ; AUDIO_2
music_const MUSIC_GYM_LEADER_BATTLE, Music_GymLeaderBattle
music_const MUSIC_TRAINER_BATTLE, Music_TrainerBattle
music_const MUSIC_WILD_BATTLE, Music_WildBattle
@@ -33,6 +35,7 @@ ENDM
music_const MUSIC_DEFEATED_WILD_MON, Music_DefeatedWildMon
music_const MUSIC_DEFEATED_GYM_LEADER, Music_DefeatedGymLeader
+ ; AUDIO_3
music_const MUSIC_TITLE_SCREEN, Music_TitleScreen
music_const MUSIC_CREDITS, Music_Credits
music_const MUSIC_HALL_OF_FAME, Music_HallOfFame
@@ -52,3 +55,176 @@ ENDM
music_const MUSIC_MEET_FEMALE_TRAINER, Music_MeetFemaleTrainer
music_const MUSIC_MEET_MALE_TRAINER, Music_MeetMaleTrainer
+ ; AUDIO_1 AUDIO_2 AUDIO_3
+ music_const SFX_SNARE_1, SFX_02_01
+ music_const SFX_SNARE_2, SFX_02_02
+ music_const SFX_SNARE_3, SFX_02_03
+ music_const SFX_SNARE_4, SFX_02_04
+ music_const SFX_SNARE_5, SFX_02_05
+ music_const SFX_TRIANGLE_1, SFX_02_06
+ music_const SFX_TRIANGLE_2, SFX_02_07
+ music_const SFX_SNARE_6, SFX_02_08
+ music_const SFX_SNARE_7, SFX_02_09
+ music_const SFX_SNARE_8, SFX_02_0a
+ music_const SFX_SNARE_9, SFX_02_0b
+ music_const SFX_CYMBAL_1, SFX_02_0c
+ music_const SFX_CYMBAL_2, SFX_02_0d
+ music_const SFX_CYMBAL_3, SFX_02_0e
+ music_const SFX_MUTED_SNARE_1, SFX_02_0f
+ music_const SFX_TRIANGLE_3, SFX_02_10
+ music_const SFX_MUTED_SNARE_2, SFX_02_11
+ music_const SFX_MUTED_SNARE_3, SFX_02_12
+ music_const SFX_MUTED_SNARE_4, SFX_02_13
+ music_const SFX_CRY_00, SFX_02_14
+ music_const SFX_CRY_01, SFX_02_15
+ music_const SFX_CRY_02, SFX_02_16
+ music_const SFX_CRY_03, SFX_02_17
+ music_const SFX_CRY_04, SFX_02_18
+ music_const SFX_CRY_05, SFX_02_19
+ music_const SFX_CRY_06, SFX_02_1a
+ music_const SFX_CRY_07, SFX_02_1b
+ music_const SFX_CRY_08, SFX_02_1c
+ music_const SFX_CRY_09, SFX_02_1d
+ music_const SFX_CRY_0A, SFX_02_1e
+ music_const SFX_CRY_0B, SFX_02_1f
+ music_const SFX_CRY_0C, SFX_02_20
+ music_const SFX_CRY_0D, SFX_02_21
+ music_const SFX_CRY_0E, SFX_02_22
+ music_const SFX_CRY_0F, SFX_02_23
+ music_const SFX_CRY_10, SFX_02_24
+ music_const SFX_CRY_11, SFX_02_25
+ music_const SFX_CRY_12, SFX_02_26
+ music_const SFX_CRY_13, SFX_02_27
+ music_const SFX_CRY_14, SFX_02_28
+ music_const SFX_CRY_15, SFX_02_29
+ music_const SFX_CRY_16, SFX_02_2a
+ music_const SFX_CRY_17, SFX_02_2b
+ music_const SFX_CRY_18, SFX_02_2c
+ music_const SFX_CRY_19, SFX_02_2d
+ music_const SFX_CRY_1A, SFX_02_2e
+ music_const SFX_CRY_1B, SFX_02_2f
+ music_const SFX_CRY_1C, SFX_02_30
+ music_const SFX_CRY_1D, SFX_02_31
+ music_const SFX_CRY_1E, SFX_02_32
+ music_const SFX_CRY_1F, SFX_02_33
+ music_const SFX_CRY_20, SFX_02_34
+ music_const SFX_CRY_21, SFX_02_35
+ music_const SFX_CRY_22, SFX_02_36
+ music_const SFX_CRY_23, SFX_02_37
+ music_const SFX_CRY_24, SFX_02_38
+ music_const SFX_CRY_25, SFX_02_39
+
+ music_const SFX_GET_ITEM_2, SFX_02_3b
+ music_const SFX_TINK, SFX_02_3c
+ music_const SFX_HEAL_HP, SFX_02_3d
+ music_const SFX_HEAL_AILMENT, SFX_02_3e
+ music_const SFX_START_MENU, SFX_02_3f
+ music_const SFX_PRESS_AB, SFX_02_40
+
+ ; AUDIO_1 AUDIO_3
+ music_const SFX_GET_ITEM_1, SFX_02_3a
+
+ music_const SFX_POKEDEX_RATING, SFX_02_41
+ music_const SFX_GET_KEY_ITEM, SFX_02_42
+ music_const SFX_POISONED, SFX_02_43
+ music_const SFX_TRADE_MACHINE, SFX_02_44
+ music_const SFX_TURN_ON_PC, SFX_02_45
+ music_const SFX_TURN_OFF_PC, SFX_02_46
+ music_const SFX_ENTER_PC, SFX_02_47
+ music_const SFX_SHRINK, SFX_02_48
+ music_const SFX_SWITCH, SFX_02_49
+ music_const SFX_HEALING_MACHINE, SFX_02_4a
+ music_const SFX_TELEPORT_1, SFX_02_4b
+ music_const SFX_TELEPORT_2, SFX_02_4c
+ music_const SFX_TELEPORT_3, SFX_02_4d
+ music_const SFX_LEDGE, SFX_02_4e
+ music_const SFX_FLY_1, SFX_02_4f
+ music_const SFX_FLY_2, SFX_02_50
+ music_const SFX_DENIED, SFX_02_51
+ music_const SFX_ARROW_TILES, SFX_02_52
+ music_const SFX_PUSH_BOULDER, SFX_02_53
+ music_const SFX_SS_ANNE_HORN, SFX_02_54
+ music_const SFX_WITHDRAW_DEPOSIT, SFX_02_55
+ music_const SFX_CUT, SFX_02_56
+ music_const SFX_GO_INSIDE, SFX_02_57
+ music_const SFX_SWAP, SFX_02_58
+ music_const SFX_59, SFX_02_59 ; unused, sounds similar to SFX_SLOTS_STOP_WHEEL
+ music_const SFX_PURCHASE, SFX_02_5a
+ music_const SFX_COLLISION, SFX_02_5b
+ music_const SFX_GO_OUTSIDE, SFX_02_5c
+ music_const SFX_SAVE, SFX_02_5d
+
+ ; AUDIO_1
+ music_const SFX_POKEFLUE, SFX_02_5e
+ music_const SFX_SAFARI_ZONE_PA, SFX_02_5f
+
+ ; AUDIO_2
+ music_const SFX_LEVEL_UP, SFX_08_3a
+
+ music_const SFX_BATTLE_01, SFX_08_41
+ music_const SFX_BATTLE_02, SFX_08_42
+ music_const SFX_BATTLE_03, SFX_08_43
+ music_const SFX_BATTLE_04, SFX_08_44
+ music_const SFX_BATTLE_05, SFX_08_45
+ music_const SFX_BATTLE_06, SFX_08_46
+ music_const SFX_BATTLE_07, SFX_08_47
+ music_const SFX_BATTLE_08, SFX_08_48
+ music_const SFX_BATTLE_09, SFX_08_49
+ music_const SFX_BATTLE_0A, SFX_08_4a
+ music_const SFX_BATTLE_0B, SFX_08_4b
+ music_const SFX_BATTLE_0C, SFX_08_4c
+ music_const SFX_BATTLE_0D, SFX_08_4d
+ music_const SFX_BATTLE_0E, SFX_08_4e
+ music_const SFX_BATTLE_0F, SFX_08_4f
+ music_const SFX_BATTLE_10, SFX_08_50
+ music_const SFX_BATTLE_11, SFX_08_51
+ music_const SFX_BATTLE_12, SFX_08_52
+ music_const SFX_BATTLE_13, SFX_08_53
+ music_const SFX_BATTLE_14, SFX_08_54
+ music_const SFX_BATTLE_15, SFX_08_55
+ music_const SFX_BATTLE_16, SFX_08_56 ; unused?
+ music_const SFX_BATTLE_17, SFX_08_57
+ music_const SFX_BATTLE_18, SFX_08_58
+ music_const SFX_BATTLE_19, SFX_08_59
+ music_const SFX_BATTLE_1A, SFX_08_5a
+ music_const SFX_BATTLE_1B, SFX_08_5b
+ music_const SFX_BATTLE_1C, SFX_08_5c
+ music_const SFX_BATTLE_1D, SFX_08_5d
+ music_const SFX_BATTLE_1E, SFX_08_5e
+ music_const SFX_BATTLE_1F, SFX_08_5f
+ music_const SFX_BATTLE_20, SFX_08_60
+ music_const SFX_BATTLE_21, SFX_08_61
+ music_const SFX_BATTLE_22, SFX_08_62
+ music_const SFX_BATTLE_23, SFX_08_63
+ music_const SFX_BATTLE_24, SFX_08_64
+ music_const SFX_BATTLE_25, SFX_08_65
+ music_const SFX_BATTLE_26, SFX_08_66
+ music_const SFX_BATTLE_27, SFX_08_67
+ music_const SFX_BATTLE_28, SFX_08_68
+ music_const SFX_BATTLE_29, SFX_08_69
+ music_const SFX_BATTLE_2A, SFX_08_6a
+ music_const SFX_BATTLE_2B, SFX_08_6b
+ music_const SFX_BATTLE_2C, SFX_08_6c
+ music_const SFX_BATTLE_2D, SFX_08_6d
+ music_const SFX_BATTLE_2E, SFX_08_6e
+ music_const SFX_BATTLE_2F, SFX_08_6f
+ music_const SFX_BATTLE_30, SFX_08_70
+ music_const SFX_BATTLE_31, SFX_08_71
+ music_const SFX_BATTLE_32, SFX_08_72
+ music_const SFX_BATTLE_33, SFX_08_73
+ music_const SFX_BATTLE_34, SFX_08_74
+ music_const SFX_BATTLE_35, SFX_08_75
+ music_const SFX_BATTLE_36, SFX_08_76
+ music_const SFX_BATTLE_37, SFX_08_77
+
+ ; AUDIO_3
+ music_const SFX_INTRO_LUNGE, SFX_1f_5e
+ music_const SFX_INTRO_HIP, SFX_1f_5f
+ music_const SFX_INTRO_HOP, SFX_1f_60
+ music_const SFX_INTRO_RAISE, SFX_1f_61
+ music_const SFX_INTRO_CRASH, SFX_1f_62
+ music_const SFX_INTRO_WHOOSH, SFX_1f_63
+ music_const SFX_SLOTS_STOP_WHEEL, SFX_1f_64
+ music_const SFX_SLOTS_REWARD, SFX_1f_65
+ music_const SFX_SLOTS_NEW_SPIN, SFX_1f_66
+ music_const SFX_SHOOTING_STAR, SFX_1f_67
diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm
index 6803c38b..19625b15 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 5deeb4dc..30b62dea 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 9ed38c21..0f3a0d00 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 4a253c68..9cdc617c 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 Func_3c59
- 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 841929b8..b65ee2c8 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 31ae17a4..4c2ea816 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 fe2d71c8..69e8b4bf 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 9e160f81..dc936c97 100755
--- a/engine/menu/main_menu.asm
+++ b/engine/menu/main_menu.asm
@@ -481,7 +481,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 c7b2f4d6..62b054df 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 f5b1d14c..0c30ee59 100755
--- a/engine/overworld/elevator.asm
+++ b/engine/overworld/elevator.asm
@@ -19,7 +19,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
@@ -31,7 +31,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
.asm_7bf57
ld a, [wc02a]
diff --git a/engine/overworld/healing_machine.asm b/engine/overworld/healing_machine.asm
index d00bbc05..fce797d0 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 Func_70503
- 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 910fcf04..94f20439 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 56468595..d13a2aa7 100755
--- a/engine/save.asm
+++ b/engine/save.asm
@@ -161,7 +161,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
@@ -375,7 +375,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 ea1eb315..c7968c10 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 3a4e2e4c..c5f72aee 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
diff --git a/home.asm b/home.asm
index 1b910054..cb4f7ad2 100644
--- a/home.asm
+++ b/home.asm
@@ -1330,7 +1330,7 @@ AddAmountSoldToMoney:: ; 2b9e (0:2b9e)
ld a,MONEY_BOX
ld [wTextBoxID],a
call DisplayTextBoxID ; redraw money text box
- ld a, (SFX_02_5a - SFX_Headers_02) / 3
+ ld a, SFX_PURCHASE
call PlaySoundWaitForCurrent
jp WaitForSoundToFinish
@@ -3490,7 +3490,7 @@ ManualTextScroll:: ; 3898 (0:3898)
cp LINK_STATE_BATTLING
jr z, .inLinkBattle
call WaitForTextScrollButtonPress
- ld a, (SFX_02_40 - SFX_Headers_02) / 3
+ ld a, SFX_PRESS_AB
jp PlaySound
.inLinkBattle
ld c, 65
@@ -4016,7 +4016,7 @@ HandleMenuInputPokemonSelection:: ; 3ac2 (0:3ac2)
bit 5,[hl]
pop hl
jr nz,.skipPlayingSound
- ld a,(SFX_02_40 - SFX_Headers_02) / 3
+ ld a,SFX_PRESS_AB
call PlaySound
.skipPlayingSound
pop af
diff --git a/home/overworld.asm b/home/overworld.asm
index 0485335a..814e8c54 100644
--- a/home/overworld.asm
+++ b/home/overworld.asm
@@ -674,10 +674,10 @@ PlayMapChangeSound:: ; 08c9 (0:08c9)
aCoord 8, 8 ; upper left tile of the 4x4 square the player's sprite is standing on
cp a,$0b ; door tile in tileset 0
jr nz,.didNotGoThroughDoor
- ld a,(SFX_02_57 - SFX_Headers_02) / 3
+ ld a,SFX_GO_INSIDE
jr .playSound
.didNotGoThroughDoor
- ld a,(SFX_02_5c - SFX_Headers_02) / 3
+ ld a,SFX_GO_OUTSIDE
.playSound
call PlaySound
ld a,[wMapPalOffset]
@@ -1227,9 +1227,9 @@ CollisionCheckOnLand:: ; 0bd1 (0:0bd1)
jr nc,.noCollision
.collision
ld a,[wc02a]
- cp a,(SFX_02_5b - SFX_Headers_02) / 3 ; check if collision sound is already playing
+ cp a,SFX_COLLISION ; check if collision sound is already playing
jr z,.setCarry
- ld a,(SFX_02_5b - SFX_Headers_02) / 3
+ ld a,SFX_COLLISION
call PlaySound ; play collision sound (if it's not already playing)
.setCarry
scf
@@ -1930,9 +1930,9 @@ CollisionCheckOnWater:: ; 0fb7 (0:0fb7)
jr .loop
.collision
ld a,[wc02a]
- cp a,(SFX_02_5b - SFX_Headers_02) / 3 ; check if collision sound is already playing
+ cp a,SFX_COLLISION ; check if collision sound is already playing
jr z,.setCarry
- ld a,(SFX_02_5b - SFX_Headers_02) / 3
+ ld a,SFX_COLLISION
call PlaySound ; play collision sound (if it's not already playing)
.setCarry
scf
diff --git a/home/text.asm b/home/text.asm
index 7eb5148b..89708306 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -626,13 +626,13 @@ TextCommand0B:: ; 1c31 (0:1c31)
; format: text command ID, sound ID or cry ID
TextCommandSounds:: ; 1c64 (0:1c64)
- db $0B,(SFX_02_3a - SFX_Headers_02) / 3
- db $12,(SFX_08_46 - SFX_Headers_08) / 3
- db $0E,(SFX_02_41 - SFX_Headers_02) / 3
- db $0F,(SFX_02_3a - SFX_Headers_02) / 3
- db $10,(SFX_02_3b - SFX_Headers_02) / 3
- db $11,(SFX_02_42 - SFX_Headers_02) / 3
- db $13,(SFX_08_45 - SFX_Headers_08) / 3
+ db $0B,SFX_GET_ITEM_1
+ db $12,SFX_BATTLE_06
+ db $0E,SFX_POKEDEX_RATING
+ db $0F,SFX_GET_ITEM_1
+ db $10,SFX_GET_ITEM_2
+ db $11,SFX_GET_KEY_ITEM
+ db $13,SFX_BATTLE_05
db $14,NIDORINA ; used in OakSpeech
db $15,PIDGEOT ; used in SaffronCityText12
db $16,DEWGONG ; unused?
diff --git a/main.asm b/main.asm
index 08747a5a..a81e7d98 100755
--- a/main.asm
+++ b/main.asm
@@ -1605,7 +1605,7 @@ DisplayTwoOptionMenu: ; 7559 (1:7559)
pop af
pop hl
ld [wFlags_0xcd60], a
- ld a, (SFX_02_40 - SFX_Headers_02) / 3
+ ld a, SFX_PRESS_AB
call PlaySound
jr .pressedAButton
.notNoYesMenu
@@ -2631,7 +2631,7 @@ ApplyOutOfBattlePoisonDamage: ; c69c (3:469c)
jr z, .skipPoisonEffectAndSound
ld b, $2
predef ChangeBGPalColor0_4Frames ; change BG white to dark grey for 4 frames
- ld a, (SFX_02_43 - SFX_Headers_02) / 3
+ ld a, SFX_POISONED
call PlaySound
.skipPoisonEffectAndSound
predef AnyPartyAlive
@@ -3512,7 +3512,7 @@ TryPushingBoulder: ; f225 (3:7225)
ld de, PushBoulderRightMovementData
.done
call MoveSprite
- ld a, (SFX_02_53 - SFX_Headers_02) / 3
+ ld a, SFX_PUSH_BOULDER
call PlaySound
ld hl, wFlags_0xcd60
set 1, [hl]
@@ -3543,7 +3543,7 @@ DoBoulderDustAnimation: ; f2b5 (3:72b5)
ld [H_SPRITEINDEX], a
call GetSpriteMovementByte2Pointer
ld [hl], $10
- ld a, (SFX_02_56 - SFX_Headers_02) / 3
+ ld a, SFX_CUT
jp PlaySound
ResetBoulderPushFlags: ; f2dd (3:72dd)
diff --git a/scripts/celadongamecorner.asm b/scripts/celadongamecorner.asm
index 519c0c67..53e55872 100755
--- a/scripts/celadongamecorner.asm
+++ b/scripts/celadongamecorner.asm
@@ -454,7 +454,7 @@ CeladonGameCornerText12: ; 48edd (12:4edd)
ld hl, CeladonGameCornerText_48f09
call PrintText
call WaitForSoundToFinish
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
call WaitForSoundToFinish
ld hl, wd77e
@@ -468,7 +468,7 @@ CeladonGameCornerText12: ; 48edd (12:4edd)
CeladonGameCornerText_48f09: ; 48f09 (12:4f09)
TX_FAR _CeladonGameCornerText_48f09
TX_ASM
- ld a, (SFX_02_49 - SFX_Headers_02) / 3
+ ld a, SFX_SWITCH
call PlaySound
call WaitForSoundToFinish
jp TextScriptEnd
diff --git a/scripts/cinnabargym.asm b/scripts/cinnabargym.asm
index dbede0d3..9b308bd3 100755
--- a/scripts/cinnabargym.asm
+++ b/scripts/cinnabargym.asm
@@ -106,7 +106,7 @@ CinnabarGymScript2: ; 757f6 (1d:57f6)
and a
jr nz, .asm_7581b
call WaitForSoundToFinish
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
call WaitForSoundToFinish
.asm_7581b
diff --git a/scripts/daycarem.asm b/scripts/daycarem.asm
index 330f2234..a9798f19 100755
--- a/scripts/daycarem.asm
+++ b/scripts/daycarem.asm
@@ -156,7 +156,7 @@ DayCareMScript_562e1: ; 562e1 (15:62e1)
ld de, wPlayerMoney + 2
ld c, $3
predef SubBCDPredef
- ld a, (SFX_02_5a - SFX_Headers_02) / 3
+ ld a, SFX_PURCHASE
call PlaySoundWaitForCurrent
ld a, MONEY_BOX
ld [wTextBoxID], a
diff --git a/scripts/lance.asm b/scripts/lance.asm
index e335914b..f5095a69 100755
--- a/scripts/lance.asm
+++ b/scripts/lance.asm
@@ -75,7 +75,7 @@ LanceScript0: ; 5a305 (16:6305)
ret nz
ld hl, wd126
set 5, [hl]
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
jp LanceScript_5a2c4
diff --git a/scripts/mansion1.asm b/scripts/mansion1.asm
index 6673e03b..a9e2616a 100755
--- a/scripts/mansion1.asm
+++ b/scripts/mansion1.asm
@@ -111,7 +111,7 @@ Mansion1Text4: ; 4435a (11:435a)
set 5, [hl]
ld hl, MansionSwitchPressedText
call PrintText
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
ld hl, wd796
bit 0, [hl]
diff --git a/scripts/mansion2.asm b/scripts/mansion2.asm
index 27ccbdfb..1cacae02 100755
--- a/scripts/mansion2.asm
+++ b/scripts/mansion2.asm
@@ -117,7 +117,7 @@ Mansion2Text5: ; 52087 (14:6087)
set 5, [hl]
ld hl, Mansion2Text_520c7
call PrintText
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
ld hl, wd796
bit 0, [hl]
diff --git a/scripts/museum1f.asm b/scripts/museum1f.asm
index 38c3f717..f41f05ff 100755
--- a/scripts/museum1f.asm
+++ b/scripts/museum1f.asm
@@ -107,7 +107,7 @@ Museum1FText1: ; 5c135 (17:4135)
ld a, MONEY_BOX
ld [wTextBoxID], a
call DisplayTextBoxID
- ld a, (SFX_02_5a - SFX_Headers_02) / 3
+ ld a, SFX_PURCHASE
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
jr .asm_0b094
diff --git a/scripts/rockethideout1.asm b/scripts/rockethideout1.asm
index 967ab77b..b798744d 100755
--- a/scripts/rockethideout1.asm
+++ b/scripts/rockethideout1.asm
@@ -21,7 +21,7 @@ RocketHideout1Script_44be0: ; 44be0 (11:4be0)
ld a, $54
jr .asm_44c03
.asm_44bf7
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
ld hl, wd815
bit 7, [hl]
diff --git a/scripts/rockethideout2.asm b/scripts/rockethideout2.asm
index c2184bdb..ead69458 100755
--- a/scripts/rockethideout2.asm
+++ b/scripts/rockethideout2.asm
@@ -25,7 +25,7 @@ RocketHideout2Script0: ; 44e42 (11:4e42)
ld hl, wd736
set 7, [hl]
call StartSimulatingJoypadStates
- ld a, (SFX_02_52 - SFX_Headers_02) / 3
+ ld a, SFX_ARROW_TILES
call PlaySound
ld a, $ff
ld [wJoyIgnore], a
diff --git a/scripts/rockethideout3.asm b/scripts/rockethideout3.asm
index b025acd0..2060c26c 100755
--- a/scripts/rockethideout3.asm
+++ b/scripts/rockethideout3.asm
@@ -25,7 +25,7 @@ RocketHideout3Script0: ; 45240 (11:5240)
ld hl, wd736
set 7, [hl]
call StartSimulatingJoypadStates
- ld a, (SFX_02_52 - SFX_Headers_02) / 3
+ ld a, SFX_ARROW_TILES
call PlaySound
ld a, $ff
ld [wJoyIgnore], a
diff --git a/scripts/rockethideout4.asm b/scripts/rockethideout4.asm
index 635c6095..44536279 100755
--- a/scripts/rockethideout4.asm
+++ b/scripts/rockethideout4.asm
@@ -22,7 +22,7 @@ RocketHideout4Script_45473: ; 45473 (11:5473)
ld a, $2d
jr .asm_45498
.asm_4548c
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
ld hl, wd81b
set 5, [hl]
diff --git a/scripts/route22gate.asm b/scripts/route22gate.asm
index 8b24c820..95546a99 100755
--- a/scripts/route22gate.asm
+++ b/scripts/route22gate.asm
@@ -77,7 +77,7 @@ Route22GateText1: ; 1e6e1 (7:66e1)
Route22GateText_1e704: ; 1e704 (7:6704)
TX_FAR _Route22GateText_1e704
TX_ASM
- ld a, (SFX_02_51 - SFX_Headers_02) / 3
+ ld a, SFX_DENIED
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
ld hl, Route22GateText_1e715
diff --git a/scripts/route23.asm b/scripts/route23.asm
index eeaf2a2b..a258b88a 100755
--- a/scripts/route23.asm
+++ b/scripts/route23.asm
@@ -224,7 +224,7 @@ Route23Script_51388: ; 51388 (14:5388)
VictoryRoadGuardText1: ; 5138e (14:538e)
TX_FAR _VictoryRoadGuardText1
TX_ASM
- ld a, (SFX_02_51 - SFX_Headers_02) / 3
+ ld a, SFX_DENIED
call PlaySoundWaitForCurrent
call WaitForSoundToFinish
jp TextScriptEnd
diff --git a/scripts/vermiliondock.asm b/scripts/vermiliondock.asm
index a8cf3b8d..c65c7aea 100755
--- a/scripts/vermiliondock.asm
+++ b/scripts/vermiliondock.asm
@@ -72,7 +72,7 @@ VermilionDock_1db9b: ; 1db9b (7:5b9b)
ld b, [hl]
push bc
push hl
- ld a, (SFX_02_54 - SFX_Headers_02) / 3
+ ld a, SFX_SS_ANNE_HORN
call PlaySoundWaitForCurrent
ld a, $ff
ld [wUpdateSpritesEnabled], a
@@ -193,7 +193,7 @@ VermilionDock_1dc94: ; 1dc94 (7:5c94)
ld [hli], a
ld [hli], a
ld [hl], a
- ld a, (SFX_02_54 - SFX_Headers_02) / 3
+ ld a, SFX_SS_ANNE_HORN
call PlaySound
ld c, 120
call DelayFrames
diff --git a/scripts/vermiliongym.asm b/scripts/vermiliongym.asm
index 193b3a06..614e0b4d 100755
--- a/scripts/vermiliongym.asm
+++ b/scripts/vermiliongym.asm
@@ -34,7 +34,7 @@ VermilionGymScript_5ca6d: ; 5ca6d (17:4a6d)
ld a, $24
jr .asm_5ca7f
.asm_5ca78
- ld a, (SFX_02_57 - SFX_Headers_02) / 3
+ ld a, SFX_GO_INSIDE
call PlaySound
ld a, $5
.asm_5ca7f
diff --git a/scripts/viridiangym.asm b/scripts/viridiangym.asm
index 9a0ce855..7a577095 100755
--- a/scripts/viridiangym.asm
+++ b/scripts/viridiangym.asm
@@ -41,7 +41,7 @@ ViridianGymScript0: ; 748eb (1d:48eb)
call StartSimulatingJoypadStates
ld hl, wd736
set 7, [hl]
- ld a, (SFX_02_52 - SFX_Headers_02) / 3
+ ld a, SFX_ARROW_TILES
call PlaySound
ld a, $ff
ld [wJoyIgnore], a