2025-02-28 15:55:47 +03:00
|
|
|
using Content.Server._CP14.Alchemy.EntitySystems;
|
2024-06-08 18:46:09 +03:00
|
|
|
using Content.Shared.FixedPoint;
|
|
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
|
2025-02-28 15:55:47 +03:00
|
|
|
namespace Content.Server._CP14.Alchemy.Components;
|
2024-06-08 18:46:09 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// gradually rounds down all reagents in the specified solution
|
|
|
|
|
/// </summary>
|
2025-03-02 13:28:13 +03:00
|
|
|
[RegisterComponent, Access(typeof(CP14SolutionCleanerSystem))]
|
|
|
|
|
public sealed partial class CP14SolutionCleanerComponent : Component
|
2024-06-08 18:46:09 +03:00
|
|
|
{
|
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
public string Solution = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// the reagent will flow gradually by the specified number until it becomes normalized
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
2025-03-02 13:28:13 +03:00
|
|
|
public FixedPoint2 LeakageQuantity = 0.25f;
|
2024-06-08 18:46:09 +03:00
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public TimeSpan UpdateFrequency = TimeSpan.FromSeconds(4f);
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public TimeSpan NextUpdateTime = TimeSpan.Zero;
|
|
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public SoundSpecifier NormalizeSound = new SoundPathSpecifier("/Audio/Ambience/Objects/drain.ogg")
|
|
|
|
|
{
|
|
|
|
|
Params = AudioParams.Default.WithVariation(0.03f)
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|