mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
27 lines
789 B
Plaintext
27 lines
789 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_DANGER("[src]'s MMI flatlines!"), SPAN_WARNING("You hear something flatline."))
|
|
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)
|