CatStation/Content.Shared/Damage/Components/StaminaDamageOnHitRequiresChargeComponent.cs
Winkarst b0026453c4
Refactor: Split `StunbatonComponent` into generic components (#44870)
* Refactor

* Update

* Rename

* Update prototypes

* Fix OnCollide

* Review

* Update

* Cleanup

* Update

* Update

* Update

* Cleanup

* Missed
2026-08-14 18:19:10 +00:00

18 lines
660 B
C#

using Content.Shared.Damage.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Damage.Components;
/// <summary>
/// With this component, <see cref="StaminaDamageOnHitComponent"/> will consume battery charge and will not work if there is less than needed.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedStaminaSystem))]
public sealed partial class StaminaDamageOnHitRequiresChargeComponent : Component
{
/// <summary>
/// The amount of battery charge required for the hit.
/// </summary>
[DataField(required: true), AutoNetworkedField]
public float RequiredCharge;
}