Files
tbd-station-14/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs
Leon Friedrich f80f252ff2 Make fuel tanks explodey again (#4670)
* make fuel tanks explodey again

* tanks now take damage from lit welders,
2021-10-02 11:42:46 +02:00

22 lines
626 B
C#

using Content.Server.Explosion;
using Content.Server.Explosion.Components;
using JetBrains.Annotations;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Destructible.Thresholds.Behaviors
{
/// <summary>
/// This behavior will trigger entities with <see cref="ExplosiveComponent"/> to go boom.
/// </summary>
[UsedImplicitly]
[DataDefinition]
public class ExplodeBehavior : IThresholdBehavior
{
public void Execute(IEntity owner, DestructibleSystem system)
{
owner.SpawnExplosion();
}
}
}