* cleanup of AddComponentSpecial * add RemoveComponentSpecial * require --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
17 lines
437 B
C#
17 lines
437 B
C#
using Content.Shared.Roles;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Jobs;
|
|
|
|
public sealed partial class RemoveComponentSpecial : JobSpecial
|
|
{
|
|
[DataField(required: true)]
|
|
public ComponentRegistry Components { get; private set; } = new();
|
|
|
|
public override void AfterEquip(EntityUid mob)
|
|
{
|
|
var entMan = IoCManager.Resolve<IEntityManager>();
|
|
entMan.RemoveComponents(mob, Components);
|
|
}
|
|
}
|