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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user