* telegraphy effects * shadow step spell backend * add component spell * predict sharpening * Update ring.yml * locale sync * Update entities.ftl * icon shadow step
18 lines
441 B
C#
18 lines
441 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._CP14.MagicSpell.Spells;
|
|
|
|
public sealed partial class CP14SpellAddComponent : CP14SpellEffect
|
|
{
|
|
[DataField]
|
|
public ComponentRegistry Components = new();
|
|
|
|
public override void Effect(EntityManager entManager, CP14SpellEffectBaseArgs args)
|
|
{
|
|
if (args.Target is null)
|
|
return;
|
|
|
|
entManager.AddComponents(args.Target.Value, Components);
|
|
}
|
|
}
|