mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
23 lines
913 B
C#
23 lines
913 B
C#
using Content.Server.Atmos.EntitySystems;
|
|
using Content.Shared.Atmos.Components;
|
|
using Content.Shared.EntityEffects;
|
|
using Content.Shared.EntityEffects.Effects.Atmos;
|
|
|
|
namespace Content.Server.EntityEffects.Effects.Atmos;
|
|
|
|
/// <summary>
|
|
/// Sets this entity on fire.
|
|
/// </summary>
|
|
/// <inheritdoc cref="EntityEffectSystem{T,TEffect}"/>
|
|
public sealed partial class IngiteEntityEffectSystem : EntityEffectSystem<FlammableComponent, Ignite>
|
|
{
|
|
[Dependency] private FlammableSystem _flammable = default!;
|
|
|
|
protected override void Effect(Entity<FlammableComponent> entity, ref EntityEffectEvent<Ignite> args)
|
|
{
|
|
// TODO: Proper BodySystem Metabolism Effect relay...
|
|
// TODO: If this fucks over downstream shitmed, I give you full approval to use whatever shitcode method you need to fix it. Metabolism is awful.
|
|
_flammable.Ignite(entity, entity, flammable: entity.Comp);
|
|
}
|
|
}
|
|
|