diff options
| author | earthcrafterman <banddstudios@gmail.com> | 2022-05-15 15:04:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-15 15:04:04 -0400 |
| commit | 3e01b25573e2f8a70a2abd2829d0ea7c0a7f30da (patch) | |
| tree | 530445b1ed806eb1388e592dfa75d57056f3fff8 /soh/src/code | |
| parent | f217b9bb973e334ffc88e37b167cfffa45b4bd3f (diff) | |
Add a toggle for muting the low HP alarm (#310)
* Removes the code that plays the low health alarm sound effect, by removing that instead of making HealthMeter_IsCritical always return false, Link will still play the tired animation when low on health.
* Made the low health alarm an enhancement toggle
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_lifemeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/z_lifemeter.c b/soh/src/code/z_lifemeter.c index 344022505..5f1863440 100644 --- a/soh/src/code/z_lifemeter.c +++ b/soh/src/code/z_lifemeter.c @@ -498,8 +498,8 @@ void HealthMeter_HandleCriticalAlarm(GlobalContext* globalCtx) { if (interfaceCtx->unk_22A <= 0) { interfaceCtx->unk_22A = 0; interfaceCtx->unk_22C = 0; - if (!Player_InCsMode(globalCtx) && (globalCtx->pauseCtx.state == 0) && - (globalCtx->pauseCtx.debugState == 0) && HealthMeter_IsCritical() && !Gameplay_InCsMode(globalCtx)) { + if (CVar_GetS32("gLowHpAlarm", 0) == 0 && !Player_InCsMode(globalCtx) && (globalCtx->pauseCtx.state == 0) && + (globalCtx->pauseCtx.debugState == 0) && HealthMeter_IsCritical() && !Gameplay_InCsMode(globalCtx)) { func_80078884(NA_SE_SY_HITPOINT_ALARM); } } |
