MessyDrinker for dogs (#38852)

This commit is contained in:
ScarKy0
2025-08-06 15:00:32 +02:00
committed by GitHub
parent 5181219f89
commit 3d0a506f6d
6 changed files with 89 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
using Content.Shared.FixedPoint;
namespace Content.Server.Nutrition.Components;
/// <summary>
/// Entities with this component occasionally spill some of their drink when drinking.
/// </summary>
[RegisterComponent]
public sealed partial class MessyDrinkerComponent : Component
{
[DataField]
public float SpillChance = 0.2f;
/// <summary>
/// The amount of solution that is spilled when <see cref="SpillChance"/> procs.
/// </summary>
[DataField]
public FixedPoint2 SpillAmount = 1.0;
[DataField]
public LocId? SpillMessagePopup;
}