From a9a2ab69f20a0e1a49351f48cc9135b06acbfbfb Mon Sep 17 00:00:00 2001 From: Geeves Date: Sun, 7 Mar 2021 17:07:53 +0200 Subject: [PATCH] Brain Death Fix (#11388) --- code/modules/mob/living/carbon/brain/life.dm | 2 +- html/changelogs/geeves-brain_death.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/geeves-brain_death.yml diff --git a/code/modules/mob/living/carbon/brain/life.dm b/code/modules/mob/living/carbon/brain/life.dm index be609aadd2e..02016ea63a9 100644 --- a/code/modules/mob/living/carbon/brain/life.dm +++ b/code/modules/mob/living/carbon/brain/life.dm @@ -101,7 +101,7 @@ blinded = 1 silent = 0 else //ALIVE. LIGHTS ARE ON - if( !container && (health < config.health_threshold_dead || ((world.time - timeofhostdeath) > config.revival_brain_life)) ) + if(!container && (health < config.health_threshold_dead || ((config.revival_brain_life != -1) && world.time - timeofhostdeath > config.revival_brain_life))) death() blinded = 1 silent = 0 diff --git a/html/changelogs/geeves-brain_death.yml b/html/changelogs/geeves-brain_death.yml new file mode 100644 index 00000000000..9cccdd8547a --- /dev/null +++ b/html/changelogs/geeves-brain_death.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - bugfix: "Fixed brains dying instantly when the head gets decapitated or the body explodes. This will give roboticists enough time to retrieve and borg them." \ No newline at end of file