Files
tbd-station-14/Content.Server/Mech/Components/MechAirIntakeComponent.cs
2023-09-03 17:20:45 +10:00

29 lines
855 B
C#

using Content.Shared.Atmos;
namespace Content.Server.Mech.Components;
/// <summary>
/// This is basically a siphon vent for mech but not using pump vent component because MechAir bad
/// </summary>
[RegisterComponent]
public sealed partial class MechAirIntakeComponent : Component
{
/// <summary>
/// Target pressure change for a single atmos tick
/// </summary>
[DataField("targetPressureChange")]
public float TargetPressureChange = 5f;
/// <summary>
/// How strong the intake pump is, it will be able to replenish air from lower pressure areas.
/// </summary>
[DataField("pumpPower")]
public float PumpPower = 2f;
/// <summary>
/// Pressure to intake gases up to, maintains MechAir pressure.
/// </summary>
[DataField("pressure")]
public float Pressure = Atmospherics.OneAtmosphere;
}