You now stop breathing while in crit.

This commit is contained in:
Pieter-Jan Briers
2021-01-24 16:38:01 +01:00
parent 526c3d1ebf
commit 961f80254d
2 changed files with 12 additions and 3 deletions

View File

@@ -206,10 +206,13 @@ namespace Content.Server.GameObjects.Components.Metabolism
if (bloodstreamAmount < amountNeeded)
{
// Panic inhale
foreach (var lung in lungs)
if (!Owner.GetComponent<IMobStateComponent>().IsCritical())
{
lung.Gasp();
// Panic inhale
foreach (var lung in lungs)
{
lung.Gasp();
}
}
bloodstreamAmount = bloodstream.Air.GetMoles(gas);