6
2025-08-05 10:00:54 +03:00

25 lines
756 B
C#

using Content.Shared.Throwing;
using Content.Shared.Xenoarchaeology.Artifact.Components;
using Content.Shared.Xenoarchaeology.Artifact.XAT.Components;
namespace Content.Shared.Xenoarchaeology.Artifact.XAT;
/// <summary>
/// System for xeno artifact trigger that requires hand-held artifact to be thrown (and land).
/// </summary>
public sealed class XATItemLandSystem : BaseXATSystem<XATItemLandComponent>
{
/// <inheritdoc/>
public override void Initialize()
{
base.Initialize();
XATSubscribeDirectEvent<LandEvent>(OnLand);
}
private void OnLand(Entity<XenoArtifactComponent> artifact, Entity<XATItemLandComponent, XenoArtifactNodeComponent> node, ref LandEvent args)
{
Trigger(artifact, node);
}
}