Files
crystall-punk-14/Content.Shared/_CP14/MagicWeakness/CP14MagicUnsafeDamageComponent.cs
MetalSage a6847c08e8 Add "Mana Wasting" trait (#732)
* 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>
2025-01-12 13:10:45 +03:00

25 lines
615 B
C#

using Content.Shared.Damage;
using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
namespace Content.Shared._CP14.MagicWeakness;
/// <summary>
/// imposes damage on excessive use of magic
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(CP14MagicWeaknessSystem))]
public sealed partial class CP14MagicUnsafeDamageComponent : Component
{
[DataField]
public DamageSpecifier DamagePerEnergy = new()
{
DamageDict = new Dictionary<string, FixedPoint2>
{
{"Blunt", 0.3},
{"Poison", 0.4},
{"Heat", 0.3},
},
};
}