using Content.Shared.Magic;
using Content.Shared.Xenoarchaeology.Artifact.XAE.Components;
namespace Content.Shared.Xenoarchaeology.Artifact.XAE;
///
/// System for xeno artifact effect that opens doors in some area around.
///
public sealed class XAEKnockSystem : BaseXAESystem
{
[Dependency] private readonly SharedMagicSystem _magic = default!;
///
protected override void OnActivated(Entity ent, ref XenoArtifactNodeActivatedEvent args)
{
_magic.Knock(args.Artifact, ent.Comp.KnockRange);
}
}