Add uplink implant (#15728)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -2,6 +2,7 @@ using Content.Server.Mind.Components;
|
||||
using Content.Server.Store.Components;
|
||||
using Content.Server.UserInterface;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Implants.Components;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Stacks;
|
||||
@@ -32,6 +33,7 @@ public sealed partial class StoreSystem : EntitySystem
|
||||
SubscribeLocalEvent<StoreComponent, MapInitEvent>(OnMapInit);
|
||||
SubscribeLocalEvent<StoreComponent, ComponentStartup>(OnStartup);
|
||||
SubscribeLocalEvent<StoreComponent, ComponentShutdown>(OnShutdown);
|
||||
SubscribeLocalEvent<StoreComponent, OpenUplinkImplantEvent>(OnImplantActivate);
|
||||
|
||||
InitializeUi();
|
||||
InitializeCommand();
|
||||
@@ -85,6 +87,11 @@ public sealed partial class StoreSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
private void OnImplantActivate(EntityUid uid, StoreComponent component, OpenUplinkImplantEvent args)
|
||||
{
|
||||
ToggleUi(args.Performer, uid, component);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the value from an entity's currency component.
|
||||
/// Scales with stacks.
|
||||
|
||||
Reference in New Issue
Block a user