Significantly updates the Engineering guidebook (more explicitly the Atmos section) to have a lot more relevant and useful information. Right now engineering has been getting update after update with no real change to the relevant guidebook entry. This has lead to a lot of out of date information and bad practices being prevalent in the guidebook, something that pains me to read.
58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
using Content.Shared.Atmos;
|
|
using Content.Shared.Guidebook;
|
|
|
|
namespace Content.Server.Atmos.Portable
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class PortableScrubberComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The air inside this machine.
|
|
/// </summary>
|
|
[DataField("gasMixture"), ViewVariables(VVAccess.ReadWrite)]
|
|
public GasMixture Air { get; private set; } = new();
|
|
|
|
[DataField("port"), ViewVariables(VVAccess.ReadWrite)]
|
|
public string PortName { get; set; } = "port";
|
|
|
|
/// <summary>
|
|
/// Which gases this machine will scrub out.
|
|
/// Unlike fixed scrubbers controlled by an air alarm,
|
|
/// this can't be changed in game.
|
|
/// </summary>
|
|
[DataField("filterGases")]
|
|
public HashSet<Gas> FilterGases = new()
|
|
{
|
|
Gas.CarbonDioxide,
|
|
Gas.Plasma,
|
|
Gas.Tritium,
|
|
Gas.WaterVapor,
|
|
Gas.Ammonia,
|
|
Gas.NitrousOxide,
|
|
Gas.Frezon
|
|
};
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public bool Enabled = true;
|
|
|
|
/// <summary>
|
|
/// Maximum internal pressure before it refuses to take more.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float MaxPressure = 2500;
|
|
|
|
/// <summary>
|
|
/// The speed at which gas is scrubbed from the environment.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float TransferRate = 800;
|
|
|
|
#region GuidebookData
|
|
|
|
[GuidebookData]
|
|
public float Volume => Air.Volume;
|
|
|
|
#endregion
|
|
}
|
|
}
|