From e89a198f43b9a145d374c17da8e7f22acb11bb0e Mon Sep 17 00:00:00 2001 From: Adrer Date: Tue, 27 Oct 2020 01:45:22 +0100 Subject: [PATCH] No longer shows flavour text when examining someone who's mutilated (#14722) * Changed flavour text visibility * Checks if head is actually there before causing runtime * Checks if head is there before checking head state * Runtime fix 2 electric boogaloo * first review processed * Only checks for disfigured head now --- code/modules/mob/living/carbon/human/examine.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index cf517dc7389..7f4b90aef0b 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -388,9 +388,11 @@ msg += "Physical status: \[[medical]\]\n" msg += "Medical records: \[View\] \[Add comment\]\n" - if(print_flavor_text() && !skipface) - msg += "[print_flavor_text()]\n" + if(get_organ("head")) + var/obj/item/organ/external/head/H = get_organ("head") + if(!H.disfigured) + msg += "[print_flavor_text()]\n" msg += "*---------*" if(pose)