using Content.Shared.Damage;
using Content.Shared._Shitmed.Targeting;
// Damages the entity by a set amount when it hits someone.
// Can be used to make melee items limited-use or make an entity deal self-damage with unarmed attacks.
namespace Content.Server.Damage.Components;
[RegisterComponent]
public sealed partial class DamageOnHitComponent : Component
{
[DataField("ignoreResistances")]
[ViewVariables(VVAccess.ReadWrite)]
public bool IgnoreResistances = true;
[DataField("damage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = default!;
//
// The body parts to deal damage to.
// When there is more than one listed element,
// randomly selects between one of the elements.
//
[DataField]
[ViewVariables(VVAccess.ReadWrite)]
public List? TargetParts = null;
}