2022-11-06 18:05:44 -05:00
|
|
|
|
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Triggers when the salvage magnet is activated
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class ArtifactMagnetTriggerComponent : Component
|
2022-11-06 18:05:44 -05:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// how close to the magnet do you have to be?
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("range")]
|
|
|
|
|
|
public float Range = 40f;
|
2022-11-20 01:52:32 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// How close do active magboots have to be?
|
|
|
|
|
|
/// This is smaller because they are weaker magnets
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("magbootRange")]
|
|
|
|
|
|
public float MagbootRange = 2f;
|
2022-11-06 18:05:44 -05:00
|
|
|
|
}
|