using Content.Shared.Mindshield.Components; using Content.Shared.Overlays; using Content.Shared.StatusIcon.Components; namespace Content.Client.Overlays; public sealed partial class ShowMindShieldIconsSystem : EquipmentHudSystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnGetStatusIconsEvent); SubscribeLocalEvent(OnGetStatusIconsEventFake); } // TODO: Probably need to get this OFF of client since this can be read by bad actors rather easily // ...imagine cheating in a game about silly paper dolls private void OnGetStatusIconsEventFake(EntityUid uid, FakeMindShieldComponent component, ref GetStatusIconsEvent ev) { if (!IsActive) return; if (component.IsEnabled && ProtoMan.Resolve(component.MindShieldStatusIcon, out var fakeStatusIconPrototype)) ev.StatusIcons.Add(fakeStatusIconPrototype); } private void OnGetStatusIconsEvent(EntityUid uid, MindShieldComponent component, ref GetStatusIconsEvent ev) { if (!IsActive) return; if (ProtoMan.Resolve(component.MindShieldStatusIcon, out var iconPrototype)) ev.StatusIcons.Add(iconPrototype); } }