More artifacts triggers and tweaks (#6723)

Co-authored-by: mirrorcult <lunarautomaton6@gmail.com>
This commit is contained in:
Alex Evgrashin
2022-02-19 22:16:49 +03:00
committed by GitHub
parent 162af7add5
commit 6eeaa81131
32 changed files with 347 additions and 61 deletions

View File

@@ -0,0 +1,28 @@
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
// TODO: This should probably be generalized for cold temperature too,
// but right now there is no sane way to make a freezer.
/// <summary>
/// Triggers artifact if its in hot environment or
/// has contacted with a hot object (lit welder, lighter, etc).
/// </summary>
[RegisterComponent]
public sealed class ArtifactHeatTriggerComponent : Component
{
/// <summary>
/// Minimal surrounding gas temperature to trigger artifact.
/// Around 100 degrees celsius by default.
/// Doesn't affect hot items temperature.
/// </summary>
[DataField("activationTemperature")]
[ViewVariables(VVAccess.ReadWrite)]
public float ActivationTemperature = 373;
/// <summary>
/// Should artifact be activated by hot items (welders, lighter, etc)?
/// </summary>
[DataField("activateHot")]
[ViewVariables(VVAccess.ReadWrite)]
public bool ActivateHotItems = true;
}