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 WeakAspect : AspectSystem<WeakAspectComponent>
{
[Dependency] private readonly IConfigurationManager _cfg = default!;
protected override void Started(EntityUid uid, WeakAspectComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args)
base.Started(uid, component, gameRule, args);
_cfg.SetCVar(WhiteCVars.DamageGetModifier, 0.5f);
}
protected override void Ended(EntityUid uid, WeakAspectComponent component, GameRuleComponent gameRule, GameRuleEndedEvent args)
base.Ended(uid, component, gameRule, args);
_cfg.SetCVar(WhiteCVars.DamageGetModifier, 1.0f);