Files
OldThink/Content.Shared/_White/Cult/Systems/CultRuneSystem.cs
Aviu00 e856e3de2f - add: Runes can't be examined by crew. (#129)
* - add: Runes can't be examined by crew.

* - add: No rune pointing.
2024-02-27 12:00:02 +00:00

24 lines
604 B
C#

using Content.Shared._White.Cult.Components;
using Content.Shared.Examine;
using Content.Shared.Ghost;
namespace Content.Shared._White.Cult.Systems;
public sealed class CultRuneSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<CultRuneComponent, ExamineAttemptEvent>(OnExamine);
}
private void OnExamine(Entity<CultRuneComponent> ent, ref ExamineAttemptEvent args)
{
if (HasComp<GhostComponent>(args.Examiner) || HasComp<CultistComponent>(args.Examiner))
return;
args.Cancel();
}
}