Files
wwdpublic/Content.Client/Implants/ImplanterSystem.cs
Pieter-Jan Briers 973d06aea5 Use item status extension method (#23884)
Just removes some lines of code.

(cherry picked from commit e665c2487e2f248bdc6b435bdcdb3060c69b546c)
2024-01-26 22:30:27 +01:00

23 lines
677 B
C#

using Content.Client.Implants.UI;
using Content.Client.Items;
using Content.Shared.Implants;
using Content.Shared.Implants.Components;
namespace Content.Client.Implants;
public sealed class ImplanterSystem : SharedImplanterSystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ImplanterComponent, AfterAutoHandleStateEvent>(OnHandleImplanterState);
Subs.ItemStatus<ImplanterComponent>(ent => new ImplanterStatusControl(ent));
}
private void OnHandleImplanterState(EntityUid uid, ImplanterComponent component, ref AfterAutoHandleStateEvent args)
{
component.UiUpdateNeeded = true;
}
}