# Conflicts: # Content.Client/UserInterface/Controls/RadialContainer.cs # Content.Server/Lathe/LatheSystem.cs # Content.Server/Silicons/Laws/SiliconLawSystem.cs # Content.Shared/Inventory/InventorySystem.Relay.cs # Content.Shared/Materials/SharedMaterialReclaimerSystem.cs # Content.Shared/Medical/Cryogenics/SharedCryoPodSystem.cs # Content.Shared/VendingMachines/SharedVendingMachineSystem.cs # Content.Shared/Wieldable/SharedWieldableSystem.cs # Resources/Locale/en-US/_strings/station-events/events/radiation-storm.ftl # Resources/Locale/en-US/_strings/store/uplink-catalog.ftl # Resources/Prototypes/Atmospherics/gases.yml # Resources/Prototypes/Catalog/Fills/Lockers/heads.yml # Resources/Prototypes/Datasets/Names/borg.yml # Resources/Prototypes/Entities/Mobs/NPCs/silicon.yml # Resources/Prototypes/Entities/Mobs/Player/silicon.yml # Resources/Prototypes/Entities/Objects/Misc/subdermal_implants.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/Snipers/snipers.yml # Resources/Prototypes/Entities/Structures/Specific/Atmospherics/sensor.yml # Resources/ServerInfo/Guidebook/Engineering/AME.xml # Resources/ServerInfo/Guidebook/Engineering/AirlockSecurity.xml # Resources/ServerInfo/Guidebook/Engineering/Atmospherics.xml # Resources/ServerInfo/Guidebook/Engineering/Construction.xml # Resources/ServerInfo/Guidebook/Engineering/Engineering.xml # Resources/ServerInfo/Guidebook/Engineering/Fires.xml # Resources/ServerInfo/Guidebook/Engineering/NetworkConfigurator.xml # Resources/ServerInfo/Guidebook/Engineering/Networking.xml # Resources/ServerInfo/Guidebook/Engineering/Power.xml # Resources/ServerInfo/Guidebook/Engineering/RTG.xml # Resources/ServerInfo/Guidebook/Engineering/Shuttlecraft.xml # Resources/ServerInfo/Guidebook/Engineering/Singularity.xml # Resources/ServerInfo/Guidebook/Engineering/TEG.xml # Resources/ServerInfo/Guidebook/Security/CriminalRecords.xml # Resources/Textures/Clothing/OuterClothing/Vests/hazard.rsi/equipped-OUTERCLOTHING.png # Resources/Textures/Clothing/OuterClothing/Vests/hazard.rsi/icon.png # Resources/Textures/Clothing/OuterClothing/Vests/hazard.rsi/meta.json # Resources/Textures/Objects/Weapons/Guns/Rifles/lecter.rsi/equipped-BACKPACK.png # Resources/migration.yml
59 lines
1.7 KiB
C#
59 lines
1.7 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,
|
|
Gas.BZ, //SunRise edit
|
|
Gas.Healium, //SunRise edit
|
|
};
|
|
|
|
[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
|
|
}
|
|
}
|