Files
crystall-punk-14/Content.Shared/_CP14/MagicEnergy/Components/CP14MagicEnergyContainerComponent.cs
Ed ba901d5e0e Crystals Update (#925)
* portal frame

* resprited sharpening stone

* portal frame entity

* darkness -> dimension magic type

* thaumaturgy platforms, some refactor

* magic energy refactor

* Update AirlockPryingTest.cs

* transfering tweaks

* fixed magic manipulation
2025-02-25 23:37:05 +03:00

30 lines
772 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]
[Access(typeof(SharedCP14MagicEnergySystem))]
public sealed partial class CP14MagicEnergyContainerComponent : Component
{
[DataField]
public FixedPoint2 Energy = 0f;
[DataField]
public FixedPoint2 MaxEnergy = 100f;
[DataField]
public ProtoId<AlertPrototype>? MagicAlert = null;
/// <summary>
/// Does this container support unsafe energy manipulation?
/// </summary>
[DataField]
public bool UnsafeSupport = false;
}