mech air overhaul (#19140)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-09-03 07:30:26 +01:00
committed by GitHub
parent b52b063d6f
commit 79394e7e70
6 changed files with 161 additions and 59 deletions

View File

@@ -0,0 +1,28 @@
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 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;
}