From 4c80ffeb505fed997811201fa85ef685118fe62e Mon Sep 17 00:00:00 2001 From: Patrick12115 <115201185+Patrick12115@users.noreply.github.com> Date: Sun, 23 Feb 2025 22:27:06 -0500 Subject: [SFX] Mute Low HP Alarm, Carpenters Sounds, and Crying Goron Child (#999) * Mute Low HP Alarm and Carpenters Adds Sfx options for Low HP Alarm and the carpenter sounds heard in South and East Clocktown from the tower being built * Change Clocktown to Clock Town * Adds toggle for crying goron * Tweaked tooltip * Use should instead of Actor Kill Co-authored-by: Archez --------- Co-authored-by: Archez --- mm/src/code/z_lifemeter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mm/src/code') diff --git a/mm/src/code/z_lifemeter.c b/mm/src/code/z_lifemeter.c index d46bc5099..372488f82 100644 --- a/mm/src/code/z_lifemeter.c +++ b/mm/src/code/z_lifemeter.c @@ -6,6 +6,7 @@ #include "BenPort.h" #include "2s2h/BenGui/HudEditor.h" #include "2s2h/BenGui/CosmeticEditor.h" +#include "2s2h/GameInteractor/GameInteractor.h" s16 sHeartsPrimColors[3][3] = { { 255, 70, 50 }, { 255, 190, 0 }, { 100, 100, 255 } }; s16 sHeartsEnvColors[3][3] = { { 50, 40, 60 }, { 255, 0, 0 }, { 0, 0, 255 } }; @@ -478,7 +479,9 @@ void LifeMeter_UpdateSizeAndBeep(PlayState* play) { interfaceCtx->lifeSizeChangeDirection = 0; if (!Player_InCsMode(play) && (play->pauseCtx.state == PAUSE_STATE_OFF) && (play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) && LifeMeter_IsCritical() && !Play_InCsMode(play)) { - Audio_PlaySfx(NA_SE_SY_HITPOINT_ALARM); + if (GameInteractor_Should(VB_PLAY_LOW_HP_ALARM, true)) { + Audio_PlaySfx(NA_SE_SY_HITPOINT_ALARM); + } } } } else { -- cgit v1.2.3