Files
crystall-punk-14/Content.Shared/_CP14/WeatherEffect/Effects/CP14WeatherEffect.cs
Ed 26d81b684b Weather refill (#1175)
* refillable by weather

* fix
2025-04-13 01:01:22 +03:00

34 lines
781 B
C#

using JetBrains.Annotations;
using Robust.Shared.Random;
namespace Content.Shared._CP14.WeatherEffect.Effects;
[ImplicitDataDefinitionForInheritors]
[MeansImplicitUse]
public abstract partial class CP14WeatherEffect
{
[DataField]
public float Prob = 0.05f;
public abstract void ApplyEffect(IEntityManager entManager, IRobustRandom random, EntityUid target);
}
[DataDefinition]
public sealed partial class CP14WeatherEffectConfig
{
[DataField]
public List<CP14WeatherEffect> Effects = new();
[DataField]
public int? MaxEntities = null;
[DataField]
public TimeSpan Frequency = TimeSpan.FromSeconds(5f);
[DataField]
public TimeSpan NextEffectTime = TimeSpan.Zero;
[DataField]
public bool CanAffectOnWeatherBlocker = true;
}