Files
crystall-punk-14/Content.Shared/_CP14/MagicSpell/Spells/CP14SpellRemoveMemoryPoint.cs
Red 04f6627e16 Lumera patron (#1427)
* mind upgrade works only on followers

* wrath of lumera, removing memory points

* enable lumera for players

* add lumera to maps

* job desc update

* guidebook
2025-06-15 15:00:18 +03:00

20 lines
512 B
C#

using Content.Shared._CP14.Skill;
namespace Content.Shared._CP14.MagicSpell.Spells;
public sealed partial class CP14SpellRemoveMemoryPoint : CP14SpellEffect
{
[DataField]
public float RemovedPoints = 0.5f;
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args)
{
if (args.Target is null)
return;
var skillSys = entManager.System<CP14SharedSkillSystem>();
skillSys.RemoveMemoryPoints(args.Target.Value, RemovedPoints);
}
}