* Simple as * whoops * not gonna work * chopped * missed something * Better name * formatting --------- Co-authored-by: iaada <iaada@users.noreply.github.com> Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
27 lines
895 B
C#
27 lines
895 B
C#
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 FlameStackOnTriggerComponent : 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;
|
|
}
|