Allows pacifists to throw Items with DamageOnLand (#31060)

This commit is contained in:
IProduceWidgets
2025-02-09 20:24:10 -05:00
committed by GitHub
parent 2e2a3a9cb1
commit fe064adaec
2 changed files with 9 additions and 14 deletions

View File

@@ -5,10 +5,16 @@ namespace Content.Server.Damage.Components
[RegisterComponent]
public sealed partial class DamageOnLandComponent : Component
{
/// <summary>
/// Should this entity be damaged when it lands regardless of its resistances?
/// </summary>
[DataField("ignoreResistances")]
[ViewVariables(VVAccess.ReadWrite)]
public bool IgnoreResistances = false;
/// <summary>
/// How much damage.
/// </summary>
[DataField("damage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = default!;