Files
tbd-station-14/Content.Shared/Trigger/Components/Effects/DamageOnTriggerComponent.cs
2025-08-03 21:20:37 +02:00

26 lines
837 B
C#

using Content.Shared.Damage;
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
/// <summary>
/// Will damage an entity when triggered.
/// If TargetUser is true it the user will take damage instead.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class DamageOnTriggerComponent : BaseXOnTriggerComponent
{
/// <summary>
/// Should the damage ignore resistances?
/// </summary>
[DataField, AutoNetworkedField]
public bool IgnoreResistances;
/// <summary>
/// The base damage amount that is dealt.
/// May be further modified by <see cref="Systems.BeforeDamageOnTriggerEvent"/> subscriptions.
/// </summary>
[DataField(required: true), AutoNetworkedField]
public DamageSpecifier Damage = default!;
}