+using Content.Shared.Ghost;
using Content.Shared.Verbs;
using Robust.Shared.Utility;
base.Initialize();
SubscribeLocalEvent<GroupExamineComponent, GetVerbsEvent<ExamineVerb>>(OnGroupExamineVerb);
+
+ _ghostQuery = GetEntityQuery<GhostComponent>();
}
/// <summary>
using System.Linq;
using System.Text;
using Content.Shared.Eye.Blinding.Components;
+using Content.Shared.Ghost;
using Content.Shared.Interaction;
using Content.Shared.Mobs.Components;
using Content.Shared.Mobs.Systems;
protected const float ExamineBlurrinessMult = 2.5f;
+ private EntityQuery<GhostComponent> _ghostQuery;
+
/// <summary>
/// Creates a new examine tooltip with arbitrary info.
/// </summary>
if (IsClientSide(entity))
return true;
+ // Ghosts can see everything.
+ if (_ghostQuery.HasComp(examiner))
+ return true;
+
// check if the mob is in critical or dead
if (MobStateSystem.IsIncapacitated(examiner))
return false;