Files
crystall-punk-14/Content.Server/_CP14/MagicSpell/CP14SpellEffectOnHitComponent.cs
Ed ffa565484c Modular weapon inlay (#903)
* slots lists

* blade inlay

* tadam
2025-02-16 11:41:43 +03:00

21 lines
541 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 CP14SpellEffectOnHitComponent : Component
{
[DataField(required: true, serverOnly: true)]
public List<CP14SpellEffect> Effects = new();
[DataField]
public EntityWhitelist? Whitelist;
[DataField]
public float Prob = 1f;
}