StaminaDamageOnTriggerComponent (#39607)
* 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>
This commit is contained in:
committed by
GitHub
parent
99ad34ed06
commit
2cb4e01019
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user