using Content.Shared.Magic.Events;
using Content.Shared.Xenoarchaeology.Artifact.XAE.Components;
using Robust.Shared.Timing;
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 IGameTiming _timing = default!;
///
protected override void OnActivated(Entity ent, ref XenoArtifactNodeActivatedEvent args)
{
if (!_timing.IsFirstTimePredicted)
return;
var ev = new KnockSpellEvent
{
Performer = ent.Owner,
Range = ent.Comp.KnockRange
};
RaiseLocalEvent(ev);
}
}