using Content.Shared.Chemistry.Reagent;
using Content.Server.Disease;
using JetBrains.Annotations;
namespace Content.Server.Chemistry.ReagentEffects
{
///
/// Default metabolism for medicine reagents.
///
[UsedImplicitly]
public sealed class ChemCureDisease : ReagentEffect
{
///
/// Chance it has each tick to cure a disease, between 0 and 1
///
[DataField("cureChance")]
public float CureChance = 0.15f;
public override void Effect(ReagentEffectArgs args)
{
var ev = new CureDiseaseAttemptEvent(CureChance);
args.EntityManager.EventBus.RaiseLocalEvent(args.SolutionEntity, ev, false);
}
}
}