Files
kyunkyunkyunandGitHub b0463d3c83 Convert most spans to defines (#31080)
* spanish?

* aaaagain

* keep maptext

* Update robot_items.dm

* Update span_defines.dm

* compiles

* Update silicon_mob.dm

* compile
2025-12-13 23:55:48 +00:00

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)