using Content.Shared.FixedPoint; using Content.Shared.Guidebook; namespace Content.Shared._CP14.MagicEnergy.Components; /// /// Restores mana if the entity is in the sun, and wastes it if not /// [RegisterComponent, Access(typeof(SharedCP14MagicEnergySystem))] public sealed partial class CP14MagicEnergyPhotosynthesisComponent : Component { [DataField] [GuidebookData] public FixedPoint2 DaylightEnergy = 2f; [DataField] [GuidebookData] public FixedPoint2 DarknessEnergy = 0f; /// /// how often objects will try to change magic energy. In Seconds /// [DataField] public float Delay = 3f; [DataField] public float LightThreshold = 100f; /// /// the time of the next magic energy change /// [DataField] public TimeSpan NextUpdateTime { get; set; } = TimeSpan.Zero; }