Files
crystall-punk-14/Content.Shared/_CP14/MagicWeakness/CP14MagicUnsafeSleepComponent.cs
Ed 655b32b720 Magic spells backend (#358)
* 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
2024-07-28 17:26:47 +03:00

21 lines
562 B
C#

using Content.Shared.Damage;
using Content.Shared.FixedPoint;
namespace Content.Shared._CP14.MagicWeakness;
/// <summary>
/// imposes debuffs on excessive use of magic
/// </summary>
[RegisterComponent, Access(typeof(CP14MagicWeaknessSystem))]
public sealed partial class CP14MagicUnsafeSleepComponent : Component
{
[DataField]
public float SleepPerEnergy = 0.5f;
/// <summary>
/// At the specified amount of extra mana expenditure, the character falls asleep.
/// </summary>
[DataField]
public FixedPoint2 SleepThreshold = 20f;
}