* 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
30 lines
772 B
C#
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;
|
|
}
|