Files
tbd-station-14/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs

15 lines
471 B
C#

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