Files
OldThink/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs
Alex Evgrashin 6eeaa81131 More artifacts triggers and tweaks (#6723)
Co-authored-by: mirrorcult <lunarautomaton6@gmail.com>
2022-02-19 12:16:49 -07:00

37 lines
988 B
C#

using Content.Shared.Atmos;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
/// <summary>
/// Activates artifact when it surrounded by certain gas.
/// </summary>
[RegisterComponent]
public sealed class ArtifactGasTriggerComponent : Component
{
/// <summary>
/// List of possible activation gases to pick on startup.
/// </summary>
[DataField("possibleGas")]
public Gas[] PossibleGases =
{
Gas.Oxygen,
Gas.Plasma,
Gas.Nitrogen,
Gas.CarbonDioxide
};
/// <summary>
/// Gas id that will activate artifact.
/// </summary>
[DataField("gas")]
[ViewVariables(VVAccess.ReadWrite)]
public Gas? ActivationGas;
/// <summary>
/// How many moles of gas should be present in room to activate artifact.
/// </summary>
[DataField("moles")]
[ViewVariables(VVAccess.ReadWrite)]
public float ActivationMoles = Atmospherics.MolesCellStandard * 0.1f;
}