RandomTeleportArtifactComponent.cs 612 B

123456789101112131415161718192021
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
  2. /// <summary>
  3. /// When activated, will teleport the artifact
  4. /// to a random position within a certain radius
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class RandomTeleportArtifactComponent : Component
  8. {
  9. /// <summary>
  10. /// The max distance that the artifact will teleport.
  11. /// </summary>
  12. [DataField("maxRange")]
  13. public float MaxRange = 15f;
  14. /// <summary>
  15. /// The min distance that the artifact will teleport.
  16. /// </summary>
  17. [DataField("minRange")]
  18. public float MinRange = 6f;
  19. }