Fix being able to breathe in crit. (#6629)
This commit is contained in:
@@ -61,6 +61,8 @@ namespace Content.Server.Body.Systems
|
||||
respirator.AccumulatedFrametime -= respirator.CycleDelay;
|
||||
UpdateSaturation(respirator.Owner, -respirator.CycleDelay, respirator);
|
||||
|
||||
if (!state.IsIncapacitated()) // cannot breathe in crit.
|
||||
{
|
||||
switch (respirator.Status)
|
||||
{
|
||||
case RespiratorStatus.Inhaling:
|
||||
@@ -72,6 +74,7 @@ namespace Content.Server.Body.Systems
|
||||
respirator.Status = RespiratorStatus.Inhaling;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (respirator.Saturation < respirator.SuffocationThreshold)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user