Files
Paradise/code/modules/mob/living/brain/brain_update_status.dm
Luc 5d5f83d791 Lobotomizes the brain from /mob/living/carbon (#23320)
* find and replace. this causes zero errors.

* there was one error

* repathing

* minor emote repathing as well
2023-11-29 18:39:43 +00:00

17 lines
542 B
Plaintext

/mob/living/brain/update_stat(reason = "none given")
if(status_flags & GODMODE)
return
// if(health <= min_health)
if(stat == DEAD)
if(container && health > HEALTH_THRESHOLD_DEAD && !suiciding)
update_revive()
create_debug_log("revived, trigger reason: [reason]")
return
else
if(!container || health <= HEALTH_THRESHOLD_DEAD && check_death_method())
// Considered "dead" without any external apparatus
death()
create_debug_log("died, trigger reason: [reason]")
return
// Put brain(organ) damaging code here