Files
tbd-station-14/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs
2022-05-13 17:59:03 +10:00

15 lines
438 B
C#

using Content.Server.Atmos.Piping.Unary.EntitySystems;
namespace Content.Server.Destructible.Thresholds.Behaviors
{
[Serializable]
[DataDefinition]
public sealed class DumpCanisterBehavior : IThresholdBehavior
{
public void Execute(EntityUid owner, DestructibleSystem system)
{
system.EntityManager.EntitySysManager.GetEntitySystem<GasCanisterSystem>().PurgeContents(owner);
}
}
}