using Content.Server.GameTicking.Rules.Components; using Content.Server._White.AspectsSystem.Aspects.Components; using Content.Server._White.AspectsSystem.Base; using Content.Server.GameTicking.Components; using Content.Shared._White; using Robust.Shared.Configuration; namespace Content.Server._White.AspectsSystem.Aspects; public sealed class SlipperyAspect : AspectSystem { [Dependency] private readonly IConfigurationManager _cfg = default!; protected override void Started(EntityUid uid, SlipperyAspectComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args) { base.Started(uid, component, gameRule, args); _cfg.SetCVar(WhiteCVars.SlipPowerModifier, 2f); } protected override void Ended(EntityUid uid, SlipperyAspectComponent component, GameRuleComponent gameRule, GameRuleEndedEvent args) { base.Ended(uid, component, gameRule, args); _cfg.SetCVar(WhiteCVars.SlipPowerModifier, 1f); } }