Files
OldThink/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs
2021-07-16 17:37:09 -07:00

22 lines
674 B
C#

using Content.Server.Chemistry.Components;
using Content.Server.Fluids.Components;
using JetBrains.Annotations;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Destructible.Thresholds.Behaviors
{
[UsedImplicitly]
[DataDefinition]
public class SpillBehavior : IThresholdBehavior
{
public void Execute(IEntity owner, DestructibleSystem system)
{
if (!owner.TryGetComponent(out SolutionContainerComponent? solutionContainer))
return;
solutionContainer.Solution.SpillAt(owner.Transform.Coordinates, "PuddleSmear", false);
}
}
}