Brain Death Fix (#11388)

This commit is contained in:
Geeves
2021-03-07 16:07:53 +01:00
committed by GitHub
parent df4897a43e
commit a9a2ab69f2
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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
+6
View File
@@ -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."