Files
crystall-punk-14/Content.Shared/_CP14/MagicSpell/Components/CP14MagicEffectToggledComponent.cs
Ed 36d02fdf6e Magic spells code expansion (#692)
* split manacost in separate component

* stamina spells

* toggleable actions

* swap activeCasting on ActiveDoAfter

* remove dublication

* Update CP14SharedMagicSystem.ToggleableActions.cs

* EntityWoldTarget

* mana glove done

* fix spell scrolls interrupting

* fix cooldown problem

* clean up, edit stamina system
2025-01-04 21:35:59 +03:00

32 lines
682 B
C#

using Content.Shared.DoAfter;
using Robust.Shared.Map;
namespace Content.Shared._CP14.MagicSpell.Components;
/// <summary>
///
/// </summary>
[RegisterComponent, AutoGenerateComponentPause, Access(typeof(CP14SharedMagicSystem))]
public sealed partial class CP14MagicEffectToggledComponent : Component
{
[DataField]
public float Cooldown = 1f;
[DataField, AutoPausedField]
public TimeSpan NextTick = TimeSpan.Zero;
[DataField]
public float Frequency = 0f;
[DataField]
public EntityUid? Performer;
public DoAfterId? DoAfterId;
[DataField]
public EntityUid? EntityTarget;
[DataField]
public EntityCoordinates? WorldTarget;
}