From 3fc2ba41f7bc7fcf1e51f821b4e07525e0e4a873 Mon Sep 17 00:00:00 2001 From: Ryan Tandy Date: Mon, 23 Sep 2019 10:03:19 -0700 Subject: [PATCH] Clarify naming of SFX_GET_EGG_* pointers In game, one receives eggs from the Aide and the Day-care Man, not the Day-care Lady. SFX `0x96` is used for both. Rename it to reflect it is not unique to the Day-care. SFX `0x95` is an alias of the same sound and appears to be unused. Rename the pointer to clarify that. --- audio/sfx.asm | 23 +++++++++-------------- audio/sfx_pointers.asm | 4 ++-- constants/sfx_constants.asm | 4 ++-- engine/events/daycare.asm | 2 +- engine/events/std_scripts.asm | 2 +- 5 files changed, 15 insertions(+), 20 deletions(-) diff --git a/audio/sfx.asm b/audio/sfx.asm index 9da38234f..4c4f5de88 100644 --- a/audio/sfx.asm +++ b/audio/sfx.asm @@ -1060,15 +1060,13 @@ Sfx_3RdPlace_Ch7: togglesfx -Sfx_GetEggFromDayCareLady: -Sfx_GetEggFromDayCareMan: - musicheader 4, 5, Sfx_GetEggFromDayCareLady_Ch5 - musicheader 1, 6, Sfx_GetEggFromDayCareLady_Ch6 - musicheader 1, 7, Sfx_GetEggFromDayCareLady_Ch7 - musicheader 1, 8, Sfx_GetEggFromDayCareLady_Ch8 +Sfx_GetEgg: + musicheader 4, 5, Sfx_GetEgg_Ch5 + musicheader 1, 6, Sfx_GetEgg_Ch6 + musicheader 1, 7, Sfx_GetEgg_Ch7 + musicheader 1, 8, Sfx_GetEgg_Ch8 -Sfx_GetEggFromDayCareLady_Ch5: -Sfx_GetEggFromDayCareMan_Ch5: +Sfx_GetEgg_Ch5: togglesfx tempo 120 volume $77 @@ -1100,8 +1098,7 @@ Sfx_GetEggFromDayCareMan_Ch5: togglesfx -Sfx_GetEggFromDayCareLady_Ch6: -Sfx_GetEggFromDayCareMan_Ch6: +Sfx_GetEgg_Ch6: togglesfx vibrato $12, $34 dutycycle $3 @@ -1130,8 +1127,7 @@ Sfx_GetEggFromDayCareMan_Ch6: togglesfx -Sfx_GetEggFromDayCareLady_Ch7: -Sfx_GetEggFromDayCareMan_Ch7: +Sfx_GetEgg_Ch7: togglesfx notetype $8, $25 note __, 2 @@ -1150,8 +1146,7 @@ Sfx_GetEggFromDayCareMan_Ch7: togglesfx -Sfx_GetEggFromDayCareLady_Ch8: -Sfx_GetEggFromDayCareMan_Ch8: +Sfx_GetEgg_Ch8: togglesfx sfxtogglenoise $4 notetype $8 diff --git a/audio/sfx_pointers.asm b/audio/sfx_pointers.asm index cf1138ffc..af21cf271 100644 --- a/audio/sfx_pointers.asm +++ b/audio/sfx_pointers.asm @@ -149,8 +149,8 @@ SFX: dba Sfx_Fanfare2 dba Sfx_RegisterPhoneNumber dba Sfx_3RdPlace - dba Sfx_GetEggFromDayCareMan - dba Sfx_GetEggFromDayCareLady + dba Sfx_GetEgg + dba Sfx_GetEgg dba Sfx_MoveDeleted dba Sfx_2ndPlace dba Sfx_1stPlace diff --git a/constants/sfx_constants.asm b/constants/sfx_constants.asm index b58af59ea..113cf5f39 100644 --- a/constants/sfx_constants.asm +++ b/constants/sfx_constants.asm @@ -150,8 +150,8 @@ const SFX_FANFARE_2 ; 92 const SFX_REGISTER_PHONE_NUMBER ; 93 const SFX_3RD_PLACE ; 94 - const SFX_GET_EGG_FROM_DAY_CARE_MAN ; 95 - const SFX_GET_EGG_FROM_DAY_CARE_LADY ; 96 + const SFX_GET_EGG_UNUSED ; 95 + const SFX_GET_EGG ; 96 const SFX_MOVE_DELETED ; 97 const SFX_2ND_PLACE ; 98 const SFX_1ST_PLACE ; 99 diff --git a/engine/events/daycare.asm b/engine/events/daycare.asm index 94b90d171..34e896778 100644 --- a/engine/events/daycare.asm +++ b/engine/events/daycare.asm @@ -422,7 +422,7 @@ DayCareManOutside: call DayCare_InitBreeding ld hl, .GotEggText call PrintText - ld de, SFX_GET_EGG_FROM_DAY_CARE_LADY + ld de, SFX_GET_EGG call PlaySFX ld c, 120 call DelayFrames diff --git a/engine/events/std_scripts.asm b/engine/events/std_scripts.asm index 39241d71c..ecda72526 100644 --- a/engine/events/std_scripts.asm +++ b/engine/events/std_scripts.asm @@ -1778,7 +1778,7 @@ ReceiveItemScript: ReceiveTogepiEggScript: waitsfx farwritetext ReceivedItemText - playsound SFX_GET_EGG_FROM_DAY_CARE_LADY + playsound SFX_GET_EGG waitsfx end