using Content.Server.Explosion.EntitySystems;
using Content.Server.Xenoarchaeology.Artifact.XAE.Components;
using Content.Shared.Explosion.Components;
using Content.Shared.Xenoarchaeology.Artifact;
using Content.Shared.Xenoarchaeology.Artifact.XAE;
namespace Content.Server.Xenoarchaeology.Artifact.XAE;
///
/// System for xeno artifact effect of triggering explosion.
///
public sealed class XAETriggerExplosivesSystem : BaseXAESystem
{
[Dependency] private readonly ExplosionSystem _explosion = default!;
///
protected override void OnActivated(Entity ent, ref XenoArtifactNodeActivatedEvent args)
{
if(!TryComp(ent, out var explosiveComp))
return;
_explosion.TriggerExplosive(ent, explosiveComp);
}
}