CatStation/Content.Server/Implants/AutoImplantSystem.cs
Princess Cheeseballs 6ca1394556
[STAGING] Ensure Antag Ghost Roles make a new mind, add a test for it. (#43962)
* GRAH

* I lied about sleep this should fix it?

* achkstchually

* we should not be nuking components like this.

* push

* a bit nicer maybe?

* don't double add mindrole

* mothership too!

* two

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2026-05-24 11:07:38 -07:00

20 lines
537 B
C#

using Content.Server.Implants.Components;
namespace Content.Server.Implants;
public sealed partial class AutoImplantSystem : EntitySystem
{
[Dependency] private 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);
}
}