using System.Collections.Generic; using Content.Server.AI.Utility.Actions; using Content.Server.AI.Utility.Actions.Nutrition.Food; using Content.Server.AI.WorldState; using Content.Server.AI.WorldState.States; using Content.Server.AI.WorldState.States.Nutrition; namespace Content.Server.AI.Utility.ExpandableActions.Nutrition { public sealed class PickUpNearbyFoodExp : ExpandableUtilityAction { public override float Bonus => UtilityAction.NeedsBonus; public override IEnumerable GetActions(Blackboard context) { var owner = context.GetState().GetValue(); foreach (var entity in context.GetState().GetValue()) { yield return new PickUpFood(owner, entity, Bonus); } } } }