* InflictStaminaOnTriggerSystem Surprised this wasn't done alongside the damage one. * Correct docstring * Moar docstring changes!!! * Resolve PR comment * a * Update Content.Shared/Trigger/Systems/StaminaDamageOnTriggerSystem.cs --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
26 lines
880 B
C#
26 lines
880 B
C#
using Content.Shared.Trigger.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Trigger.Components.Effects;
|
|
|
|
/// <summary>
|
|
/// Will inflict stamina to an entity when triggered.
|
|
/// If TargetUser is true it the user will have stamina inflicted instead.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class StaminaDamageOnTriggerComponent : BaseXOnTriggerComponent
|
|
{
|
|
/// <summary>
|
|
/// Should the inflicted stamina ignore resistances?
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public bool IgnoreResistances;
|
|
|
|
/// <summary>
|
|
/// The stamina amount that is inflicted to the target.
|
|
/// May be further modified by <see cref="BeforeStaminaDamageOnTriggerEvent"/> subscriptions.
|
|
/// </summary>
|
|
[DataField(required: true), AutoNetworkedField]
|
|
public float Stamina;
|
|
}
|