Files
crystall-punk-14/Content.Shared/_CP14/MagicWeakness/CP14MagicUnsafeSleepComponent.cs
Ed 72c9cb9014 Unstable demiplane update (#866)
* replace heat trigger to unsafe damage trigger

* end demiplane music

* timed demiplane modifier

* unhardcode some values

* demiplane crystal destruction waves

* time limit

* fixes

* Update CP14UniqueLootSystem.cs

* Update unstable_rift.yml

* tweks

* Update unstable_rift.yml
2025-02-09 17:18:24 +03:00

22 lines
592 B
C#

using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
namespace Content.Shared._CP14.MagicWeakness;
/// <summary>
/// imposes debuffs on excessive use of magic
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(CP14SharedMagicWeaknessSystem))]
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;
}