using Content.Server.Nutrition.EntitySystems;
using Robust.Shared.Audio;
namespace Content.Server.Nutrition.Components;
///
/// Lets a drink burst open when thrown while closed.
/// Requires and to work.
///
[RegisterComponent, Access(typeof(DrinkSystem))]
public sealed partial class PressurizedDrinkComponent : Component
{
///
/// Chance for the drink to burst when thrown while closed.
///
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float BurstChance = 0.25f;
///
/// Sound played when the drink bursts.
///
[DataField]
public SoundSpecifier BurstSound = new SoundPathSpecifier("/Audio/Effects/flash_bang.ogg")
{
Params = AudioParams.Default.WithVolume(-4)
};
}