Files
crystall-punk-14/Content.Server/_CP14/MagicSpell/CP14SpellEffectOnCollideComponent.cs
Red 777c5f9a29 Electromancy magic branch (#1485)
* basic electromancy tree

* electric strike

* Update CP14SpellProjectile.cs

* fix throwing
2025-06-29 12:20:47 +03:00

21 lines
545 B
C#

using Content.Shared._CP14.MagicSpell.Spells;
using Content.Shared.Whitelist;
namespace Content.Server._CP14.MagicSpell;
/// <summary>
/// Component that allows an meleeWeapon to apply effects to other entities on melee attacks.
/// </summary>
[RegisterComponent]
public sealed partial class CP14SpellEffectOnCollideComponent : Component
{
[DataField(required: true, serverOnly: true)]
public List<CP14SpellEffect> Effects = new();
[DataField]
public EntityWhitelist? Whitelist;
[DataField]
public float Prob = 1f;
}