mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 09:07:27 +00:00
* 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
19 lines
545 B
C#
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;
|
|
}
|