using Content.Server.AI.Utility.Curves; using Content.Server.AI.WorldState; namespace Content.Server.AI.Utility.Considerations.State { /// /// Simple NullCheck on a StoredState /// public sealed class StoredStateIsNullCon : Consideration where T : StoredStateData { public StoredStateIsNullCon(IResponseCurve curve) : base(curve) {} public override float GetScore(Blackboard context) { var state = context.GetState(); if (state.GetValue() == null) { return 1.0f; } return 0.0f; } } }