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
|
||||
|
||||
@@ -156,10 +156,10 @@
|
||||
normalBodyTemperature: 310.15
|
||||
thermalRegulationTemperatureThreshold: 25
|
||||
needsGases:
|
||||
Oxygen: 0.00332569564
|
||||
Oxygen: 0.00060763888
|
||||
producesGases:
|
||||
Oxygen: 0.00249427173
|
||||
CarbonDioxide: 0.00083142391
|
||||
Oxygen: 0.00045572916
|
||||
CarbonDioxide: 0.00015190972
|
||||
- type: MobStateManager
|
||||
- type: HeatResistance
|
||||
- type: Appearance
|
||||
|
||||
Reference in New Issue
Block a user