Tiefling gameplay (#703)

* tiefling damage mana

* tiefling spell

* tweaks
This commit is contained in:
Ed
2025-01-06 17:08:49 +03:00
committed by GitHub
parent 71e6bd4f24
commit 8892d3913d
22 changed files with 257 additions and 22 deletions

View File

@@ -0,0 +1,14 @@
using Content.Shared.Damage.Prototypes;
using Robust.Shared.Prototypes;
namespace Content.Shared._CP14.MagicEnergy.Components;
/// <summary>
/// Restores or expends magical energy when taking damage of certain types.
/// </summary>
[RegisterComponent, Access(typeof(SharedCP14MagicEnergySystem))]
public sealed partial class CP14MagicEnergyFromDamageComponent : Component
{
[DataField]
public Dictionary<ProtoId<DamageTypePrototype>, float> Damage = new();
}

View File

@@ -14,8 +14,9 @@ public sealed partial class CP14MagicUnsafeDamageComponent : Component
{
DamageDict = new Dictionary<string, FixedPoint2>
{
{"Blunt", 0.5},
{"Heat", 0.5},
{"Blunt", 0.3},
{"Poison", 0.4},
{"Heat", 0.3},
},
};
}