Files
beck-thompson 68ca82cfd7 Add water flower for clowns (#41469)
* Spray!

* Add to clown loadout

* Fix the easy things

* lot nicer

* spray update..

* Fix yaml

* fixes

* changed it to warning!

* review

* review

* sku
2025-12-01 01:31:12 +00:00

49 lines
1.2 KiB
C#

using Content.Shared.DoAfter;
using Content.Shared.FixedPoint;
using Robust.Shared.Audio;
using Robust.Shared.Serialization;
namespace Content.Shared.Fluids;
[Serializable, NetSerializable]
public sealed partial class AbsorbantDoAfterEvent : DoAfterEvent
{
[DataField("solution", required: true)]
public string TargetSolution = default!;
[DataField("message", required: true)]
public string Message = default!;
[DataField("sound", required: true)]
public SoundSpecifier Sound = default!;
[DataField("transferAmount", required: true)]
public FixedPoint2 TransferAmount;
private AbsorbantDoAfterEvent()
{
}
public AbsorbantDoAfterEvent(string targetSolution, string message, SoundSpecifier sound, FixedPoint2 transferAmount)
{
TargetSolution = targetSolution;
Message = message;
Sound = sound;
TransferAmount = transferAmount;
}
public override DoAfterEvent Clone() => this;
}
/// <summary>
/// Raised when trying to spray something, for example a fire extinguisher.
/// </summary>
[ByRefEvent]
public record struct SprayAttemptEvent(EntityUid? User, bool Cancelled = false, string? CancelPopupMessage = null)
{
public void Cancel()
{
Cancelled = true;
}
}