ExtinguishOnTrigger and TriggerOnInteractHand (#39537)

* simplely one commit

* simplelly two commit

* requested changes

---------

Co-authored-by: iaada <iaada@users.noreply.github.com>
This commit is contained in:
āda
2025-08-11 14:21:11 -05:00
committed by GitHub
parent 85708cad7f
commit a5351b8c77
8 changed files with 87 additions and 40 deletions

View File

@@ -0,0 +1,26 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
/// <summary>
/// Adjusts fire stacks on trigger, optionally setting them on fire as well.
/// Requires <see cref="FlammableComponent"/> to ignite the target.
/// If TargetUser is true they will have their firestacks adjusted instead.
/// </summary>
/// <seealso cref="IgniteOnTriggerComponent"/>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class FireStackOnTriggerComponent : BaseXOnTriggerComponent
{
/// <summary>
/// How many fire stacks to add or remove.
/// </summary>
[DataField, AutoNetworkedField]
public float FireStacks;
/// <summary>
/// If true, the target will be set on fire if it isn't already.
/// If false does nothing.
/// </summary>
[DataField, AutoNetworkedField]
public bool DoIgnite = true;
}