* add EntityEffect aability support * delayed actions * renaming * delayed projectile spells * spawn on self + entityEffect on self spells * spawn on point spell * rename * clean up base species components * magic alert * move magic energy to Shared, add manacost to spells * magic recoil * improve magic recoil * verbal aspect * somatic aspect * add simple vfx proto and sprites * add casting VFX * add TODO
22 lines
562 B
C#
22 lines
562 B
C#
using Content.Shared.Alert;
|
|
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._CP14.MagicEnergy.Components;
|
|
|
|
/// <summary>
|
|
/// Allows an item to store magical energy within itself.
|
|
/// </summary>
|
|
[RegisterComponent, 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;
|
|
}
|