ArtifactMagnetTriggerComponent.cs 608 B

123456789101112131415161718192021
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
  2. /// <summary>
  3. /// Triggers when the salvage magnet is activated
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class ArtifactMagnetTriggerComponent : Component
  7. {
  8. /// <summary>
  9. /// how close to the magnet do you have to be?
  10. /// </summary>
  11. [DataField("range")]
  12. public float Range = 40f;
  13. /// <summary>
  14. /// How close do active magboots have to be?
  15. /// This is smaller because they are weaker magnets
  16. /// </summary>
  17. [DataField("magbootRange")]
  18. public float MagbootRange = 2f;
  19. }