using Content.Shared.Abilities.Psionics; using Content.Server.Objectives.Components; using Content.Shared.Mind; using Content.Shared.Objectives.Components; namespace Content.Server.Objectives.Systems { public sealed class BecomePsionicConditionSystem : EntitySystem { private EntityQuery _metaQuery; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnGetProgress); } private void OnGetProgress(EntityUid uid, BecomePsionicConditionComponent comp, ref ObjectiveGetProgressEvent args) { args.Progress = GetProgress(args.Mind); } private float GetProgress(MindComponent mind) { var entMan = IoCManager.Resolve(); if (HasComp(mind.CurrentEntity)) return 1; return 0; } } }