Files
OldThink/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs
Kara 7a553781cc Frezon (#9980)
* stuff i'll have to fix anyway when n2o gets merged

* everything except the finished reactions

* freon coolant reaction but with bad curve

* miasmic subsumation

* freon production

* nitrogen and diff temp scaling

* uhh meant to change that

* #

* hitting that frezon boof
2022-07-27 04:55:28 -05:00

40 lines
1.0 KiB
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,
Gas.Miasma,
Gas.NitrousOxide,
Gas.Frezon
};
/// <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;
}