mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #4190 from CHOMPStation2/upstream-merge-12859
[MIRROR] Fixes species with custom MaxHealth being unable to Succumb to death
This commit is contained in:
@@ -80,11 +80,15 @@
|
|||||||
|
|
||||||
/mob/living/verb/succumb()
|
/mob/living/verb/succumb()
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
if ((src.health < 0 && src.health > (5-src.getMaxHealth()))) // Health below Zero but above 5-away-from-death, as before, but variable
|
// if ((src.health < 0 && src.health > (5-src.getMaxHealth()))) // Health below Zero but above 5-away-from-death, as before, but variable
|
||||||
|
if (src.health < 0 && stat != DEAD)
|
||||||
src.death()
|
src.death()
|
||||||
to_chat(src, "<font color='blue'>You have given up life and succumbed to death.</font>")
|
to_chat(src, "<font color='blue'>You have given up life and succumbed to death.</font>")
|
||||||
else
|
else
|
||||||
to_chat(src, "<font color='blue'>You are not injured enough to succumb to death!</font>")
|
if(stat == DEAD)
|
||||||
|
to_chat(src, "<font color='blue'>As much as you'd like, you can't die when already dead</font>")
|
||||||
|
else
|
||||||
|
to_chat(src, "<font color='blue'>You are not injured enough to succumb to death!</font>")
|
||||||
|
|
||||||
/mob/living/proc/updatehealth()
|
/mob/living/proc/updatehealth()
|
||||||
if(status_flags & GODMODE)
|
if(status_flags & GODMODE)
|
||||||
|
|||||||
Reference in New Issue
Block a user