Files
tbd-station-14/Content.Shared/Xenoarchaeology/Artifact/XAE/XAEKnockSystem.cs
Fildrance 5674b9a363 Minor Knock spell refactor + fix its obstruction check (#41447)
* refactor: remove isFirstTimepredicted for knock XAE

* refactor: cleanups

* refactor: do not count laser obstructions toward stuff that blocks Knock spell, project spell from artifact and not node

* refactor: no method-events for knock-spells

---------

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
2025-11-15 23:07:14 +00:00

18 lines
600 B
C#

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