2022-11-06 18:05:44 -05:00
|
|
|
|
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// When activated, will teleport the artifact
|
|
|
|
|
|
/// to a random position within a certain radius
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class RandomTeleportArtifactComponent : Component
|
2022-11-06 18:05:44 -05:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The max distance that the artifact will teleport.
|
|
|
|
|
|
/// </summary>
|
2023-06-30 15:25:33 -04:00
|
|
|
|
[DataField("maxRange")]
|
|
|
|
|
|
public float MaxRange = 15f;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The min distance that the artifact will teleport.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("minRange")]
|
|
|
|
|
|
public float MinRange = 6f;
|
2022-11-06 18:05:44 -05:00
|
|
|
|
}
|