22 lines
604 B
C#
22 lines
604 B
C#
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
|
|
|
|
/// <summary>
|
|
/// When activated, will teleport the artifact
|
|
/// to a random position within a certain radius
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class RandomTeleportArtifactComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The max distance that the artifact will teleport.
|
|
/// </summary>
|
|
[DataField("maxRange")]
|
|
public float MaxRange = 15f;
|
|
|
|
/// <summary>
|
|
/// The min distance that the artifact will teleport.
|
|
/// </summary>
|
|
[DataField("minRange")]
|
|
public float MinRange = 6f;
|
|
}
|