Files
crystall-punk-14/Content.Server/Chemistry/ReagentEffects/Ignite.cs

26 lines
782 B
C#
Raw Normal View History

2021-11-28 19:25:51 -07:00
using Content.Server.Atmos.EntitySystems;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.Database;
using Robust.Shared.Prototypes;
2021-11-28 19:25:51 -07:00
namespace Content.Server.Chemistry.ReagentEffects;
/// <summary>
/// Ignites a mob.
/// </summary>
public sealed class Ignite : ReagentEffect
2021-11-28 19:25:51 -07:00
{
public override bool ShouldLog => true;
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("reagent-effect-guidebook-ignite", ("chance", Probability));
2021-11-28 19:25:51 -07:00
public override LogImpact LogImpact => LogImpact.Medium;
public override void Effect(ReagentEffectArgs args)
{
var flamSys = EntitySystem.Get<FlammableSystem>();
flamSys.Ignite(args.SolutionEntity);
}
}