using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Jobs;
public sealed partial class AddComponentSpecial : JobSpecial
{
[DataField(required: true)]
public ComponentRegistry Components { get; private set; } = new();
///
/// If this is true then existing components will be removed and replaced with these ones.
///
[DataField]
public bool RemoveExisting = true;
private readonly ISawmill _sawmill;
public override void AfterEquip(EntityUid mob)
{
var entMan = IoCManager.Resolve();
entMan.AddComponents(mob, Components, removeExisting: RemoveExisting);
}
}