Files
OldThink/Content.Server/Implants/AutoImplantSystem.cs

22 lines
582 B
C#
Raw Permalink Normal View History

using Content.Server.Implants.Components;
namespace Content.Server.Implants;
public sealed class AutoImplantSystem : EntitySystem
{
[Dependency] private readonly SubdermalImplantSystem _subdermalImplant = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<AutoImplantComponent, MapInitEvent>(OnMapInit);
}
private void OnMapInit(EntityUid uid, AutoImplantComponent comp, MapInitEvent args)
{
_subdermalImplant.AddImplants(uid, comp.Implants);
RemComp<AutoImplantComponent>(uid);
}
}