* telegraphy effects * shadow step spell backend * add component spell * predict sharpening * Update ring.yml * locale sync * Update entities.ftl * icon shadow step
27 lines
814 B
C#
27 lines
814 B
C#
using Content.Shared._CP14.MagicSpell.Spells;
|
|
using Content.Shared.FixedPoint;
|
|
|
|
namespace Content.Shared._CP14.MagicSpell.Components;
|
|
|
|
/// <summary>
|
|
/// Restricts the use of this action, by spending mana or user requirements.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(CP14SharedMagicSystem))]
|
|
public sealed partial class CP14MagicEffectComponent : Component
|
|
{
|
|
[DataField]
|
|
public FixedPoint2 ManaCost = 0f;
|
|
|
|
[DataField]
|
|
public bool Safe = false;
|
|
|
|
/// <summary>
|
|
/// Effects that will trigger at the beginning of the cast, before mana is spent. Should have no gameplay importance, just special effects, popups and sounds.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<CP14SpellEffect> TelegraphyEffects = new();
|
|
|
|
[DataField]
|
|
public List<CP14SpellEffect> Effects = new();
|
|
}
|