Files
tbd-station-14/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs
Chief-Engineer 95e35b94b5 Improve explosion logs (#13351)
* add types to explosion logs

* make explosions logged by default

* add cause parameter to IThresholdBehavior

* add cause to ExplodeBehaviors

* add cause to power cell explosions

* remove useless log

* add triggerer to triggers

* add logs for damage from explosions

* sneaky power cell update
2023-02-10 23:45:38 +00:00

19 lines
575 B
C#

using Content.Server.Explosion.Components;
using JetBrains.Annotations;
namespace Content.Server.Destructible.Thresholds.Behaviors
{
/// <summary>
/// This behavior will trigger entities with <see cref="ExplosiveComponent"/> to go boom.
/// </summary>
[UsedImplicitly]
[DataDefinition]
public sealed class ExplodeBehavior : IThresholdBehavior
{
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
{
system.ExplosionSystem.TriggerExplosive(owner, user:cause);
}
}
}