using Content.Server.Traits.Assorted; using Content.Shared.Chemistry.Reagent; using JetBrains.Annotations; namespace Content.Server.Chemistry.ReagentEffects; /// /// Reset narcolepsy timer /// [UsedImplicitly] public sealed class ResetNarcolepsy : ReagentEffect { /// /// The # of seconds the effect resets the narcolepsy timer to /// [DataField("TimerReset")] public int TimerReset = 600; public override void Effect(ReagentEffectArgs args) { if (args.Scale != 1f) return; args.EntityManager.EntitySysManager.GetEntitySystem().AdjustNarcolepsyTimer(args.SolutionEntity, TimerReset); } }