using Content.Shared.Mobs; using Content.Shared.Mobs.Components; using Robust.Shared.Prototypes; namespace Content.Shared.EntityConditions.Conditions.Body; /// /// Returns true if this entity's current mob state matches the condition's specified mob state. /// /// public sealed partial class MobStateEntityConditionSystem : EntityConditionSystem { protected override void Condition(Entity entity, ref EntityConditionEvent args) { if (entity.Comp.CurrentState == args.Condition.Mobstate) args.Result = true; } } /// public sealed partial class MobStateCondition : EntityConditionBase { [DataField] public MobState Mobstate = MobState.Alive; public override string EntityConditionGuidebookText(IPrototypeManager prototype) => Loc.GetString("reagent-effect-condition-guidebook-mob-state-condition", ("state", Mobstate)); }