Lets you enter fakedeath when dead (#76666)

## About The Pull Request

Fixes #76665

`fakedeath` early returned if the mob was dead, I guess it assumed if
you were dead dead you wouldn't want to become fake dead as well

I removed that because it's definitely a valid use case, in my eyes,
that you would be able to apply the fakedeath traits to a mob who is
dead, for the event they are revived at some point (to still appear
dead)

## Why It's Good For The Game

Lings rely on this

## Changelog

🆑 Melbert
fix: Fix ling revival for full-dead lings
/🆑
This commit is contained in:
MrMelbert
2023-07-10 03:37:25 -05:00
committed by GitHub
parent 5757652f0f
commit 0e85aa3220
5 changed files with 37 additions and 20 deletions
@@ -247,7 +247,7 @@
/datum/reagent/toxin/zombiepowder/on_mob_metabolize(mob/living/holder_mob)
. = ..()
holder_mob.adjustOxyLoss(0.5*REM, FALSE, required_biotype = affected_biotype, required_respiration_type = affected_respiration_type)
if(data?["method"] & INGEST)
if((data?["method"] & INGEST) && holder_mob.stat != DEAD)
holder_mob.fakedeath(type)
/datum/reagent/toxin/zombiepowder/on_mob_end_metabolize(mob/living/holder_mob)
@@ -274,7 +274,8 @@
if(5 to 8)
affected_mob.adjustStaminaLoss(40 * REM * seconds_per_tick, 0)
if(9 to INFINITY)
affected_mob.fakedeath(type)
if(affected_mob.stat != DEAD)
affected_mob.fakedeath(type)
..()
return TRUE