Fix gasping for real this time I promise (#2285)
* Fix gasping I promise for real this time * Remove comments. Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
@@ -159,6 +159,7 @@ namespace Content.Server.GameObjects.Components.Body.Behavior
|
||||
{
|
||||
var ratio = Atmospherics.BreathPercentage * frameTime;
|
||||
|
||||
|
||||
Transfer(from, Air, ratio);
|
||||
ToBloodstream(Air);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ using Robust.Shared.GameObjects.ComponentDependencies;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Log;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.ViewVariables;
|
||||
@@ -228,6 +229,7 @@ namespace Content.Server.GameObjects.Components.Metabolism
|
||||
|
||||
DeficitGases[gas] = deficit;
|
||||
|
||||
|
||||
used += (amountNeeded - deficit) / amountNeeded;
|
||||
}
|
||||
|
||||
@@ -417,7 +419,7 @@ namespace Content.Server.GameObjects.Components.Metabolism
|
||||
}
|
||||
else
|
||||
{
|
||||
var overflowThreshold = needed * 1.5f;
|
||||
var overflowThreshold = needed * 5f;
|
||||
|
||||
amount = molesInBlood > overflowThreshold
|
||||
? molesInBlood - overflowThreshold
|
||||
|
||||
Reference in New Issue
Block a user