using Content.Shared.Damage; using Content.Shared.Whitelist; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// /// When activated, damages nearby entities. /// [RegisterComponent] public sealed partial class DamageNearbyArtifactComponent : Component { /// /// The radius of entities that will be affected /// [DataField("radius")] public float Radius = 3f; /// /// A whitelist for filtering certain damage. /// /// /// TODO: The component portion, since it uses an array, does not work currently. /// [DataField("whitelist")] public EntityWhitelist? Whitelist; /// /// The damage that is applied /// [DataField("damage", required: true)] public DamageSpecifier Damage = default!; /// /// The chance that damage is applied to each individual entity /// [DataField("damageChance")] public float DamageChance = 1f; /// /// Whether or not this should ignore resistances for the damage /// [DataField("ignoreResistances")] public bool IgnoreResistances; }