Succumb changes

Succumb now works on sufficiently-injured mobs that are unable to take oxyloss damage, like prometheans, FBPs, and dionaea. You're also now given a notification if you try to succumb when you're not injured enough for it.
This commit is contained in:
PrismaticGynoid
2018-02-20 20:13:44 -08:00
parent 9549d18c4e
commit 726d04d8a1
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -172,10 +172,10 @@ default behaviour is:
/mob/living/verb/succumb()
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
src.adjustOxyLoss(src.health + src.getMaxHealth() * 2) // Deal 2x health in OxyLoss damage, as before but variable.
src.health = src.getMaxHealth() - src.getOxyLoss() - src.getToxLoss() - src.getFireLoss() - src.getBruteLoss()
src.death()
to_chat(src, "<font color='blue'>You have given up life and succumbed to death.</font>")
else
to_chat(src, "<font color='blue'>You are not injured enough to succumb to death!</font>")
/mob/living/proc/updatehealth()
if(status_flags & GODMODE)