mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-24 08:02:57 +00:00
20 lines
542 B
Plaintext
20 lines
542 B
Plaintext
/mob/living/brain/death(gibbed)
|
|
if(stat == DEAD)
|
|
return
|
|
stat = DEAD
|
|
|
|
if(!gibbed && container)//If not gibbed but in a container.
|
|
var/obj/item/device/mmi = container
|
|
mmi.visible_message("<span class='warning'>[src]'s MMI flatlines!</span>", \
|
|
"<span class='italics'>You hear something flatline.</span>")
|
|
mmi.update_icon()
|
|
|
|
return ..()
|
|
|
|
/mob/living/brain/gib()
|
|
if(container)
|
|
qdel(container)//Gets rid of the MMI if there is one
|
|
if(loc)
|
|
if(istype(loc, /obj/item/organ/brain))
|
|
qdel(loc)//Gets rid of the brain item
|
|
..() |