Много чего

This commit is contained in:
BIGZi0348
2025-03-16 18:00:19 +03:00
parent 77f3f0ee70
commit c6eda2a60a
24 changed files with 1385 additions and 271 deletions

View File

@@ -0,0 +1,21 @@
using Content.Shared.Examine;
using Content.Shared.Implants;
namespace Content.Server._White.AddImplant;
public sealed class AddImplantSystem : EntitySystem
{
[Dependency] private readonly SharedSubdermalImplantSystem _implantSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<AddImplantComponent, MapInitEvent>(OnMapInit);
}
public void OnMapInit(Entity<AddImplantComponent> ent, ref MapInitEvent args)
{
_implantSystem.AddImplants(ent.Owner, ent.Comp.Implants);
RemComp<AddImplantComponent>(ent.Owner);
}
}