mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
5d5f83d791
* find and replace. this causes zero errors. * there was one error * repathing * minor emote repathing as well
27 lines
819 B
Plaintext
27 lines
819 B
Plaintext
/mob/living/brain/death(gibbed)
|
|
// Only execute the below if we successfully died
|
|
. = ..()
|
|
if(!.)
|
|
return FALSE
|
|
if(!gibbed && container && istype(container, /obj/item/mmi))//If not gibbed but in a container.
|
|
var/obj/item/mmi/mmi = container
|
|
visible_message("<span class='danger'>[src]'s MMI flatlines!</span>", "<span class='warning'>You hear something flatline.</span>")
|
|
mmi.icon_state = mmi.dead_icon
|
|
|
|
/mob/living/brain/gib()
|
|
// can we muster a parent call here?
|
|
if(!death(TRUE) && stat != DEAD)
|
|
return FALSE
|
|
notransform = TRUE
|
|
icon = null
|
|
invisibility = 101
|
|
|
|
gibs(loc, dna)
|
|
|
|
if(container && istype(container, /obj/item/mmi))
|
|
qdel(container)//Gets rid of the MMI if there is one
|
|
if(loc)
|
|
if(istype(loc,/obj/item/organ/internal/brain))
|
|
qdel(loc)//Gets rid of the brain item
|
|
QDEL_IN(src, 0)
|