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
This commit is contained in:
Contrabang
2022-07-30 11:52:52 +01:00
committed by GitHub
parent f115c45578
commit a0f326bec3
2 changed files with 6 additions and 1 deletions
@@ -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, "<span class='warning'>There is nothing left inside [src]!</span>")
return
playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1)
@@ -228,6 +228,11 @@
var/sec_facial_colour = "#000000"
var/f_style = "Shaved"
/obj/item/organ/external/head/examine(mob/user)
. = ..()
if(!length(contents))
. += "<span class='warning'>There is nothing left inside!</span>"
/obj/item/organ/external/head/remove()
if(owner)
if(!istype(dna))