More artifacts triggers and tweaks (#6723)
Co-authored-by: mirrorcult <lunarautomaton6@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user