Species with oldcrit no longer go unconcious at 0 HP (#23877)

* IPC + ABDUCTOR BUFF IN 2024???

* IM SORRY LINTER PLEASE DONT KILL ME
This commit is contained in:
BiancaWilkson
2024-02-04 22:07:22 +00:00
committed by GitHub
parent 25f76da779
commit 78f3f9b1f9
3 changed files with 5 additions and 2 deletions
@@ -291,7 +291,7 @@
if(!client)
return
var/shock_reduction = shock_reduction()
if(stat == UNCONSCIOUS && health <= HEALTH_THRESHOLD_CRIT)
if(health <= HEALTH_THRESHOLD_CRIT)
if(check_death_method())
var/severity = 0
switch(health - shock_reduction)
@@ -6,10 +6,12 @@
death()
create_debug_log("died of damage, trigger reason: [reason]")
return
if(HAS_TRAIT(src, TRAIT_KNOCKEDOUT) || (check_death_method() && getOxyLoss() > 50) || HAS_TRAIT(src, TRAIT_FAKEDEATH) || health <= HEALTH_THRESHOLD_CRIT && check_death_method())
if(HAS_TRAIT(src, TRAIT_KNOCKEDOUT) || (check_death_method() && getOxyLoss() > 50) || HAS_TRAIT(src, TRAIT_FAKEDEATH) || health < HEALTH_THRESHOLD_KNOCKOUT && check_death_method())
if(stat == CONSCIOUS)
KnockOut()
create_debug_log("fell unconscious, trigger reason: [reason]")
else if(health < HEALTH_THRESHOLD_CRIT && check_death_method())
KnockDown(3 SECONDS)
else
if(stat == UNCONSCIOUS)
WakeUp()