Files

22 lines
634 B
C#
Raw Permalink Normal View History

2022-11-17 11:40:05 -06:00
using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components;
using Content.Shared.Throwing;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems;
public sealed class ArtifactLandSystem : EntitySystem
{
[Dependency] private readonly ArtifactSystem _artifact = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ArtifactLandTriggerComponent, LandEvent>(OnLand);
}
2023-01-18 05:25:32 +11:00
private void OnLand(EntityUid uid, ArtifactLandTriggerComponent component, ref LandEvent args)
2022-11-17 11:40:05 -06:00
{
_artifact.TryActivateArtifact(uid, args.User);
}
}