mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 22:25:46 +01:00
5d5f83d791
* find and replace. this causes zero errors. * there was one error * repathing * minor emote repathing as well
17 lines
542 B
Plaintext
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
|