Files
crystall-punk-14/Content.Shared/_CP14/MagicEnergy/Components/CP14MagicEnergyContainerComponent.cs
Ed 011e90a5d1 Weather gameplay effects (#1089)
* pipa

* Weather effects

* Weather in demiplanes!

* demiplane enter roofs

* Demiplane ruins

* Update weather.yml

* Update paper.yml

* Update paper.yml
2025-03-30 17:27:05 +03:00

30 lines
880 B
C#

using Content.Shared.Alert;
using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
using Robust.Shared.GameStates;
namespace Content.Shared._CP14.MagicEnergy.Components;
/// <summary>
/// Allows an item to store magical energy within itself.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedCP14MagicEnergySystem))]
public sealed partial class CP14MagicEnergyContainerComponent : Component
{
[DataField, AutoNetworkedField]
public FixedPoint2 Energy = 0f;
[DataField, AutoNetworkedField]
public FixedPoint2 MaxEnergy = 100f;
[DataField, AutoNetworkedField]
public ProtoId<AlertPrototype>? MagicAlert = null;
/// <summary>
/// Does this container support unsafe energy manipulation?
/// </summary>
[DataField, AutoNetworkedField]
public bool UnsafeSupport = false;
}