Solution spiking (#8984)

This commit is contained in:
Flipp Syder
2022-06-23 19:26:54 -07:00
committed by GitHub
parent f71a4a1f23
commit 25869cd501
7 changed files with 148 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
namespace Content.Server.Chemistry.Components;
[RegisterComponent]
public sealed class SolutionSpikerComponent : Component
{
/// <summary>
/// The source solution to take the reagents from in order
/// to spike the other solution container.
/// </summary>
[DataField("sourceSolution")]
public string SourceSolution { get; } = string.Empty;
/// <summary>
/// If spiking with this entity should ignore empty containers or not.
/// </summary>
[DataField("ignoreEmpty")]
public bool IgnoreEmpty { get; }
/// <summary>
/// What should pop up when spiking with this entity.
/// </summary>
[DataField("popup")]
public string Popup { get; } = "spike-solution-generic";
/// <summary>
/// What should pop up when spiking fails because the container was empty.
/// </summary>
[DataField("popupEmpty")]
public string PopupEmpty { get; } = "spike-solution-empty-generic";
}