* 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>
18 lines
600 B
C#
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);
|
|
}
|
|
}
|