Files
tbd-station-14/Content.Shared/Atmos/Components/ExtinguishOnInteractComponent.cs
Nemanja ce97225c2d Replace IClickAlert with events (#30728)
* Replace IAlertClick with events

* whoop

* eek!
2024-08-07 15:15:35 +10:00

33 lines
1.0 KiB
C#

using Content.Shared.Alert;
using Robust.Shared.Audio;
namespace Content.Shared.Atmos.Components;
/// <summary>
/// Allows you to extinguish an object by interacting with it
/// </summary>
[RegisterComponent]
public sealed partial class ExtinguishOnInteractComponent : Component
{
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SoundSpecifier? ExtinguishAttemptSound = new SoundPathSpecifier("/Audio/Items/candle_blowing.ogg");
/// <summary>
/// Extinguishing chance
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float Probability = 0.9f;
/// <summary>
/// Number of fire stacks to be changed on successful interaction.
/// </summary>
// With positive values, the interaction will conversely fan the fire,
// which is useful for any blacksmithing mechs
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float StackDelta = -5.0f;
[DataField]
public LocId ExtinguishFailed = "candle-extinguish-failed";
}
public sealed partial class ResistFireAlertEvent : BaseAlertEvent;