Files
Delta-v/Content.Shared/_DV/Damage/Components/BonusStaminaDamageComponent.cs
T
BarryNorfolk 23ae0b3758 Oni/refactor (#2805)
* Add ability for GunComponent to track their holders

* Add new component to allow Players to modify gun attributes

* Allow users of melee weapons to also modify their weapons damage

* Allow user stamina damage modifiers

* Allow users of tools to also modify tool attributes

* Delete old Oni component and systems

* Replace oni components

* Set default max spread angle to 180 degrees

* Change modifier to multiplier to better reflect the math

* Add documentation.

* Add NetworkedComponent to new components
2025-02-01 11:04:12 +00:00

19 lines
545 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared._DV.Damage.Components;
/// <summary>
/// Allows entities to have additional stamina damage for their melee
/// and weapon attacks.
/// <see cref="Shared.Damage.Events.StaminaMeleeHitEvent"/>
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class BonusStaminaDamageComponent : Component
{
/// <summary>
/// Multiplies the stamina damage by this much during a stamina hit event
/// </summary>
[DataField]
public float Multiplier = 1.25f;
}