2023-04-06 14:20:48 -07:00
|
|
|
using Content.Shared.FixedPoint;
|
|
|
|
|
|
2021-11-24 00:38:39 +01:00
|
|
|
namespace Content.Server.Fluids.Components;
|
2021-09-15 12:46:43 +02:00
|
|
|
|
2021-11-24 00:38:39 +01:00
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class SpillableComponent : Component
|
2021-11-24 00:38:39 +01:00
|
|
|
{
|
|
|
|
|
[DataField("solution")]
|
|
|
|
|
public string SolutionName = "puddle";
|
2022-01-13 17:22:19 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Should this item be spilled when worn as clothing?
|
|
|
|
|
/// Doesn't count for pockets or hands.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("spillWorn")]
|
|
|
|
|
public bool SpillWorn = true;
|
2022-10-09 15:46:08 -04:00
|
|
|
|
|
|
|
|
[DataField("spillDelay")]
|
|
|
|
|
public float? SpillDelay;
|
2023-04-06 14:20:48 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// At most how much reagent can be splashed on someone at once?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("maxMeleeSpillAmount")]
|
|
|
|
|
public FixedPoint2 MaxMeleeSpillAmount = FixedPoint2.New(20);
|
2020-09-09 18:32:31 -04:00
|
|
|
}
|