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:
DrSmugleaf
2020-10-17 13:21:26 +02:00
committed by GitHub
parent 101fa9e466
commit 3989e20c29
3 changed files with 7 additions and 4 deletions

View File

@@ -159,6 +159,7 @@ namespace Content.Server.GameObjects.Components.Body.Behavior
{ {
var ratio = Atmospherics.BreathPercentage * frameTime; var ratio = Atmospherics.BreathPercentage * frameTime;
Transfer(from, Air, ratio); Transfer(from, Air, ratio);
ToBloodstream(Air); ToBloodstream(Air);
} }

View File

@@ -20,6 +20,7 @@ using Robust.Shared.GameObjects.ComponentDependencies;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC; using Robust.Shared.IoC;
using Robust.Shared.Localization; using Robust.Shared.Localization;
using Robust.Shared.Log;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization; using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables; using Robust.Shared.ViewVariables;
@@ -228,6 +229,7 @@ namespace Content.Server.GameObjects.Components.Metabolism
DeficitGases[gas] = deficit; DeficitGases[gas] = deficit;
used += (amountNeeded - deficit) / amountNeeded; used += (amountNeeded - deficit) / amountNeeded;
} }
@@ -417,7 +419,7 @@ namespace Content.Server.GameObjects.Components.Metabolism
} }
else else
{ {
var overflowThreshold = needed * 1.5f; var overflowThreshold = needed * 5f;
amount = molesInBlood > overflowThreshold amount = molesInBlood > overflowThreshold
? molesInBlood - overflowThreshold ? molesInBlood - overflowThreshold

View File

@@ -156,10 +156,10 @@
normalBodyTemperature: 310.15 normalBodyTemperature: 310.15
thermalRegulationTemperatureThreshold: 25 thermalRegulationTemperatureThreshold: 25
needsGases: needsGases:
Oxygen: 0.00332569564 Oxygen: 0.00060763888
producesGases: producesGases:
Oxygen: 0.00249427173 Oxygen: 0.00045572916
CarbonDioxide: 0.00083142391 CarbonDioxide: 0.00015190972
- type: MobStateManager - type: MobStateManager
- type: HeatResistance - type: HeatResistance
- type: Appearance - type: Appearance