* add trait * Update Resources/Locale/ru-RU/_CP14/magicEnergy/magic-spells.ftl * fix magic item using --------- Co-authored-by: MetalSage <metalsage.official@gmail.com> Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com> Co-authored-by: Ed <edwardxperia2000@gmail.com>
22 lines
586 B
C#
22 lines
586 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(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;
|
|
}
|