From a0f326bec3182e3f5d902673d3e8aa383ad7da99 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Sat, 30 Jul 2022 03:52:52 -0700 Subject: [PATCH] Examine now shows if a head has had it's organs removed (#18598) * wow look at this head i found in maints! * i dont steal code I swear * oops totally meant to fix this in the last commit --- code/modules/surgery/organs/organ_external.dm | 2 +- code/modules/surgery/organs/subtypes/standard.dm | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/surgery/organs/organ_external.dm b/code/modules/surgery/organs/organ_external.dm index 2c1171a89ab..47cd3a49a74 100644 --- a/code/modules/surgery/organs/organ_external.dm +++ b/code/modules/surgery/organs/organ_external.dm @@ -575,7 +575,7 @@ Note that amputating the affected organ does in fact remove the infection from t /obj/item/organ/external/attackby(obj/item/I, mob/user, params) if(I.sharp) add_fingerprint(user) - if(!contents.len) + if(!length(contents)) to_chat(user, "There is nothing left inside [src]!") return playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1) diff --git a/code/modules/surgery/organs/subtypes/standard.dm b/code/modules/surgery/organs/subtypes/standard.dm index 9c2eb3c776c..516d40ee814 100644 --- a/code/modules/surgery/organs/subtypes/standard.dm +++ b/code/modules/surgery/organs/subtypes/standard.dm @@ -228,6 +228,11 @@ var/sec_facial_colour = "#000000" var/f_style = "Shaved" +/obj/item/organ/external/head/examine(mob/user) + . = ..() + if(!length(contents)) + . += "There is nothing left inside!" + /obj/item/organ/external/head/remove() if(owner) if(!istype(dna))