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
This commit is contained in:
Adrer
2020-10-27 01:45:22 +01:00
committed by GitHub
parent 0991f6d1c7
commit e89a198f43
@@ -388,9 +388,11 @@
msg += "<span class = 'deptradio'>Physical status:</span> <a href='?src=[UID()];medical=1'>\[[medical]\]</a>\n"
msg += "<span class = 'deptradio'>Medical records:</span> <a href='?src=[UID()];medrecord=`'>\[View\]</a> <a href='?src=[UID()];medrecordadd=`'>\[Add comment\]</a>\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 += "*---------*</span>"
if(pose)