* tiers to level demiplanes * Update demiplane_keys.yml * demiplane on planets * migrate to wizden dayCycle + planetarize Comoss * Update comoss_d.yml * Update audio_music.yml * Update dev_map.yml * add shadows to demiplanes * remove outdated systems * fix silvas * silva fix * Update factoria.yml * Update island.yml
35 lines
907 B
C#
35 lines
907 B
C#
using Content.Shared.FixedPoint;
|
|
using Content.Shared.Guidebook;
|
|
|
|
namespace Content.Shared._CP14.MagicEnergy.Components;
|
|
|
|
/// <summary>
|
|
/// Restores mana if the entity is in the sun, and wastes it if not
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(SharedCP14MagicEnergySystem))]
|
|
public sealed partial class CP14MagicEnergyPhotosynthesisComponent : Component
|
|
{
|
|
[DataField]
|
|
[GuidebookData]
|
|
public FixedPoint2 DaylightEnergy = 2f;
|
|
|
|
[DataField]
|
|
[GuidebookData]
|
|
public FixedPoint2 DarknessEnergy = 0f;
|
|
|
|
/// <summary>
|
|
/// how often objects will try to change magic energy. In Seconds
|
|
/// </summary>
|
|
[DataField]
|
|
public float Delay = 3f;
|
|
|
|
[DataField]
|
|
public float LightThreshold = 100f;
|
|
|
|
/// <summary>
|
|
/// the time of the next magic energy change
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan NextUpdateTime { get; set; } = TimeSpan.Zero;
|
|
}
|