Co-authored-by: faint <46868845+ficcialfaint@users.noreply.github.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
This commit is contained in:
Ed
2023-11-04 08:53:51 +03:00
committed by GitHub
parent 6be2ef0c73
commit aa713ea7e6
26 changed files with 736 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
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";
}