Small changes for crit mobs to be able to gasp and dead mobs to show dead on examine (#5828)

* [ADD] changes to be able to identify living downed players

* [FIX] format of tryGetComponent, fixed string

* [CHANGE] PR mind component suggestions

* [CHANGE] trycomp based on qa feedback

* [CHANGE] Condensed mindcomponent as per feedback

Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
Fishfish458
2021-12-19 16:45:47 -06:00
committed by GitHub
parent a51b102949
commit 026f2ee313
4 changed files with 23 additions and 22 deletions

View File

@@ -153,13 +153,10 @@ namespace Content.Server.Body.Systems
if (bloodstreamAmount < amountNeeded)
{
if (!EntityManager.GetComponent<MobStateComponent>(uid).IsCritical())
// Panic inhale
foreach (var (lung, mech) in lungs)
{
// Panic inhale
foreach (var (lung, mech) in lungs)
{
_lungSystem.Gasp((lung).Owner, lung, mech);
}
_lungSystem.Gasp((lung).Owner, lung, mech);
}
bloodstreamAmount = bloodstream.Air.GetMoles(gas);