using Content.Shared._CP14.DayCycle.Components; using Robust.Shared.Random; namespace Content.Server._CP14.DayCycle; public sealed class CP14CloudShadowsSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnMapInit); } private void OnMapInit(Entity entity, ref MapInitEvent args) { entity.Comp.CloudSpeed = _random.NextVector2(-entity.Comp.MaxSpeed, entity.Comp.MaxSpeed); } }