using Content.Shared.Nutrition.EntitySystems;
namespace Content.Server.Destructible.Thresholds.Behaviors;
///
/// Causes the drink/food to open when the destruction threshold is reached.
/// If it is already open nothing happens.
///
[DataDefinition]
public sealed partial class OpenBehavior : IThresholdBehavior
{
public void Execute(EntityUid uid, DestructibleSystem system, EntityUid? cause = null)
{
var openable = system.EntityManager.System();
openable.TryOpen(uid);
}
}