From dfcee896d28bf0e1adf430200db1ce1b73a5c2d0 Mon Sep 17 00:00:00 2001 From: FelixRuin <31424899+FelixRuin@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:20:49 +0300 Subject: [PATCH] monophobia blind fix (#72829) ## About The Pull Request Doll with monophobia and blindness dont die from being "alone" while someone in 1 tile radius. ## Why It's Good For The Game maybe if blind and with monophobia die from heart attack while he in the crowd its funny, but too inescapable situation. ## Changelog :cl: Winter Schock fix: Blind doll with monophobia dont get stress while someone in 1 tile range /:cl: --- code/datums/brain_damage/severe.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/datums/brain_damage/severe.dm b/code/datums/brain_damage/severe.dm index 93569da462d..8beb4eac513 100644 --- a/code/datums/brain_damage/severe.dm +++ b/code/datums/brain_damage/severe.dm @@ -168,9 +168,10 @@ stress = max(stress - (2 * delta_time), 0) /datum/brain_trauma/severe/monophobia/proc/check_alone() + var/check_radius = 7 if(owner.is_blind()) - return TRUE - for(var/mob/M in oview(owner, 7)) + check_radius = 1 + for(var/mob/M in oview(owner, check_radius)) if(!isliving(M)) //ghosts ain't people continue if(istype(M, /mob/living/simple_animal/pet) || istype(M, /mob/living/basic/pet) || M.ckey)