21 lines
546 B
C#
21 lines
546 B
C#
using Content.Server.Atmos.EntitySystems;
|
|
using Content.Shared.Chemistry.Reagent;
|
|
using Content.Shared.Database;
|
|
|
|
namespace Content.Server.Chemistry.ReagentEffects;
|
|
|
|
/// <summary>
|
|
/// Ignites a mob.
|
|
/// </summary>
|
|
public sealed class Ignite : ReagentEffect
|
|
{
|
|
public override bool ShouldLog => true;
|
|
public override LogImpact LogImpact => LogImpact.Medium;
|
|
|
|
public override void Effect(ReagentEffectArgs args)
|
|
{
|
|
var flamSys = EntitySystem.Get<FlammableSystem>();
|
|
flamSys.Ignite(args.SolutionEntity);
|
|
}
|
|
}
|