| 123456789101112131415161718192021222324252627282930 |
- using Content.Server.Explosion.EntitySystems;
- using Content.Server.Anomaly.Components;
- using Content.Shared.Anomaly.Components;
- namespace Content.Server.Anomaly.Effects;
- /// <summary>
- /// This handles <see cref="ExplosionAnomalyComponent"/>
- /// </summary>
- public sealed class ExplosionAnomalySystem : EntitySystem
- {
- [Dependency] private readonly ExplosionSystem _boom = default!;
- public override void Initialize()
- {
- base.Initialize();
- SubscribeLocalEvent<ExplosionAnomalyComponent, AnomalySupercriticalEvent>(OnSupercritical);
- }
- private void OnSupercritical(EntityUid uid, ExplosionAnomalyComponent component, ref AnomalySupercriticalEvent args)
- {
- _boom.QueueExplosion(
- uid,
- component.ExplosionPrototype,
- component.TotalIntensity,
- component.Dropoff,
- component.MaxTileIntensity
- );
- }
- }
|