* 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
22 lines
592 B
C#
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;
|
|
}
|