Liquid anomaly (#20626)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Ed
2023-10-07 03:26:34 +03:00
committed by GitHub
parent 15fee3f944
commit b5e8c57978
17 changed files with 847 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
using Content.Server.Anomaly.Effects;
namespace Content.Server.Anomaly.Components;
/// <summary>
/// This component allows the anomaly to create puddles from the solutionContainer
/// </summary>
[RegisterComponent, Access(typeof(PuddleCreateAnomalySystem))]
public sealed partial class PuddleCreateAnomalyComponent : Component
{
/// <summary>
/// The maximum amount of solution that an anomaly can splash out of the storage on the floor during pulsation.
/// Scales with Severity.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float MaxPuddleSize = 100;
/// <summary>
/// The maximum amount of solution that an anomaly can splash out of the storage on the floor during supercritical event
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float SuperCriticalPuddleSize = 1000;
/// <summary>
/// Solution name that can be drained.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public string Solution { get; set; } = "default";
}