2023-04-06 14:20:48 -07:00
|
|
|
using Content.Shared.FixedPoint;
|
|
|
|
|
|
2024-03-03 00:36:36 -05:00
|
|
|
namespace Content.Shared.Fluids.Components;
|
2021-09-15 12:46:43 +02:00
|
|
|
|
2024-03-29 05:00:09 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// Makes a solution contained in this entity spillable.
|
|
|
|
|
/// Spills can occur when a container with this component overflows,
|
|
|
|
|
/// is used to melee attack something, is equipped (see <see cref="SpillWorn"/>),
|
|
|
|
|
/// lands after being thrown, or has the Spill verb used.
|
|
|
|
|
/// </summary>
|
2021-11-24 00:38:39 +01:00
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial 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
|
|
|
|
2024-03-03 00:36:36 -05:00
|
|
|
[DataField]
|
2022-10-09 15:46:08 -04:00
|
|
|
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>
|
2024-03-03 00:36:36 -05:00
|
|
|
[DataField]
|
2023-04-06 14:20:48 -07:00
|
|
|
public FixedPoint2 MaxMeleeSpillAmount = FixedPoint2.New(20);
|
2024-04-04 10:39:54 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Should this item be spilled when thrown?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool SpillWhenThrown = true;
|
2020-09-09 18:32:31 -04:00
|
|
|
}
|