* add trait * Update Resources/Locale/ru-RU/_CP14/magicEnergy/magic-spells.ftl * fix magic item using --------- Co-authored-by: MetalSage <metalsage.official@gmail.com> Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com> Co-authored-by: Ed <edwardxperia2000@gmail.com>
24 lines
615 B
C#
24 lines
615 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;
|
|
}
|