mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* 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>
20 lines
537 B
C#
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);
|
|
}
|
|
}
|