| 123456789101112131415161718192021222324 |
- using Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
- using Content.Server.Xenoarchaeology.XenoArtifacts.Events;
- using Content.Shared.Magic.Events;
- namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems;
- public sealed class KnockArtifactSystem : EntitySystem
- {
- /// <inheritdoc/>
- public override void Initialize()
- {
- SubscribeLocalEvent<KnockArtifactComponent, ArtifactActivatedEvent>(OnActivated);
- }
- private void OnActivated(EntityUid uid, KnockArtifactComponent component, ArtifactActivatedEvent args)
- {
- var ev = new KnockSpellEvent
- {
- Performer = uid,
- Range = component.KnockRange
- };
- RaiseLocalEvent(ev);
- }
- }
|