using Content.Shared.Damage;
using Robust.Shared.Audio;
namespace Content.Server.Weapons.Melee.WeaponRandom;
[RegisterComponent]
internal sealed partial class WeaponRandomComponent : Component
{
///
/// Amount of damage that will be caused. This is specified in the yaml.
///
[DataField("damageBonus")]
public DamageSpecifier DamageBonus = new();
///
/// Chance for the damage bonus to occur (1 = 100%).
///
[ViewVariables(VVAccess.ReadWrite)]
public float RandomDamageChance = 0.00001f;
///
/// Sound effect to play when the damage bonus occurs.
///
[DataField("damageSound")]
public SoundSpecifier DamageSound = new SoundPathSpecifier("/Audio/Items/bikehorn.ogg");
}