- add: Runes can't be examined by crew. (#129)

* - add: Runes can't be examined by crew.

* - add: No rune pointing.
This commit is contained in:
Aviu00
2024-02-27 21:00:02 +09:00
committed by GitHub
parent 292743ae3e
commit e856e3de2f
4 changed files with 49 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using Content.Server._White.Cult;
using Content.Server.Administration.Logs;
using Content.Server.Pointing.Components;
using Content.Shared.Database;
@@ -12,6 +13,7 @@ using Content.Shared.Mind;
using Content.Shared.Pointing;
using Content.Shared.Popups;
using Content.Shared._White.Administration;
using Content.Shared._White.Cult.Components;
using JetBrains.Annotations;
using Robust.Server.GameObjects;
using Robust.Server.Player;
@@ -126,11 +128,20 @@ namespace Content.Server.Pointing.EntitySystems
return false;
}
if (TryComp(pointed, out InvisibilityComponent? invisibility) && invisibility.Invisible) // WD
// WD START
if (TryComp(pointed, out InvisibilityComponent? invisibility) && invisibility.Invisible)
{
return false;
}
if (HasComp<CultRuneComponent>(pointed) && !(HasComp<GhostComponent>(player) ||
HasComp<CultistComponent>(player) ||
HasComp<ConstructComponent>(player)))
{
return false;
}
// WD END
if (HasComp<PointingArrowComponent>(pointed))
{
// this is a pointing arrow. no pointing here...