6
2025-12-18 02:55:17 +03:00

29 lines
809 B
C#

using Content.Shared.Atmos;
namespace Content.Server.Xenoarchaeology.Artifact.XAT.Components;
/// <summary>
/// This is used for an artifact that is activated by having a certain amount of gas around it.
/// </summary>
[RegisterComponent, Access(typeof(XATGasSystem))]
public sealed partial class XATGasComponent : Component
{
/// <summary>
/// The gas that is related to trigger.
/// </summary>
[DataField]
public Gas TargetGas;
/// <summary>
/// The amount of gas needed.
/// </summary>
[DataField]
public float Moles = Atmospherics.MolesCellStandard * 0.1f;
/// <summary>
/// Marker, if mentioned gas should be present in entity tile for trigger to activate, or it should not.
/// </summary>
[DataField]
public bool ShouldBePresent = true;
}