2024-07-28 17:26:47 +03:00
|
|
|
using Content.Shared.FixedPoint;
|
2025-01-12 14:10:45 +04:00
|
|
|
using Robust.Shared.GameStates;
|
2024-07-28 17:26:47 +03:00
|
|
|
|
|
|
|
|
namespace Content.Shared._CP14.MagicWeakness;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// imposes debuffs on excessive use of magic
|
|
|
|
|
/// </summary>
|
2025-01-12 14:10:45 +04:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2025-02-09 17:18:24 +03:00
|
|
|
[Access(typeof(CP14SharedMagicWeaknessSystem))]
|
2024-07-28 17:26:47 +03:00
|
|
|
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;
|
|
|
|
|
}
|