From 7b835c21288b0dc0d70361586da4952e15f361ca Mon Sep 17 00:00:00 2001 From: Archie Date: Mon, 7 Jun 2021 17:47:39 -0300 Subject: [PATCH] Better logic. --- code/modules/mob/living/carbon/human/death.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm index 69172745..a589df81 100644 --- a/code/modules/mob/living/carbon/human/death.dm +++ b/code/modules/mob/living/carbon/human/death.dm @@ -54,10 +54,11 @@ //watching someone die is traumatic for(var/mob/living/carbon/human/C in oview(5, src)) - if(!HAS_TRAIT(C, TRAIT_APATHETIC)) - SEND_SIGNAL(C, COMSIG_ADD_MOOD_EVENT, "death", /datum/mood_event/deathsaw) - if(prob(10)) //10% chance to pump adrenaline into their body - C.jitteriness += 5 + if(C.mind) //We don't need to give this to anything that doesn't have a mind. That's wasted processing. + if(!HAS_TRAIT(C, TRAIT_APATHETIC) || !C.mind.assigned_role == "Medical Doctor") //Shamelessly stolen from the Doctor's Delight + SEND_SIGNAL(C, COMSIG_ADD_MOOD_EVENT, "death", /datum/mood_event/deathsaw) + if(prob(10)) //10% chance to pump adrenaline into their body + C.jitteriness += 5 /mob/living/carbon/human/proc/makeSkeleton() ADD_TRAIT(src, TRAIT_DISFIGURED, TRAIT_GENERIC)