From ecbd7ed8c459b5ec1443b4a0e86c96233c8239d2 Mon Sep 17 00:00:00 2001 From: Vile Beggar Date: Sun, 4 Aug 2024 04:50:50 +0200 Subject: [PATCH] Limits deafness to 1 minute (#6857) # About the pull request limits being deaf to (roughly) one minute # Explain why it's good for the game one of the worst side effects of explosives in general is becoming deaf for a long time, with no way to judge how long it take to go away. as a marine you are already lacking a lot of information. communication is integral to make up for that lack of info, so it is extremely annoying to have that ability taken away, ESPECIALLY if multiple explosions stack on you or if a very strong one hits you. it feels like years before you can get your hearing back in some cases. # Testing Photographs and Procedure
Screenshots & Videos tested with the SetEarDeafness() proc set to the max integer number https://github.com/user-attachments/assets/ea7434ab-2e1d-4291-939b-5d48cc9ee6ba
# Changelog :cl: qol: Deafness is now limited to being 1 minute in length. /:cl: --------- Co-authored-by: Doubleumc --- code/modules/mob/living/living_health_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/living_health_procs.dm b/code/modules/mob/living/living_health_procs.dm index ffe1a56b59f8..4486c20360e3 100644 --- a/code/modules/mob/living/living_health_procs.dm +++ b/code/modules/mob/living/living_health_procs.dm @@ -446,7 +446,7 @@ /mob/living/proc/AdjustEarDeafness(amount) var/prev_deaf = ear_deaf - ear_deaf = max(ear_deaf + amount, 0) + ear_deaf = clamp(ear_deaf + amount, 0, 30) //roughly 1 minute if(prev_deaf) if(ear_deaf == 0) on_deafness_loss()