using Content.Shared.MobState.Components; using Content.Shared.MobState.EntitySystems; using Robust.Shared.GameStates; namespace Content.Server.MobState; public sealed partial class MobStateSystem : SharedMobStateSystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnMobGetState); } private void OnMobGetState(EntityUid uid, MobStateComponent component, ref ComponentGetState args) { args.State = new MobStateComponentState(component.CurrentThreshold); } }