Files
OldThink/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.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

33 lines
913 B
C#

namespace Content.Server.Xenoarchaeology.XenoArtifacts;
[RegisterComponent]
public sealed class ArtifactComponent : Component
{
/// <summary>
/// Should artifact pick a random trigger on startup?
/// </summary>
[DataField("randomTrigger")]
public bool RandomTrigger = true;
/// <summary>
/// List of all possible triggers activations.
/// Should be same as components names.
/// </summary>
[DataField("possibleTriggers")]
public string[] PossibleTriggers = {
"ArtifactInteractionTrigger",
"ArtifactGasTrigger",
"ArtifactHeatTrigger",
"ArtifactElectricityTrigger",
};
/// <summary>
/// Cooldown time between artifact activations (in seconds).
/// </summary>
[DataField("timer")]
[ViewVariables(VVAccess.ReadWrite)]
public double CooldownTime = 10;
public TimeSpan LastActivationTime;
}