Command resolve killing and LEC conversions batch 2 (#38367)

commit progress
This commit is contained in:
Kyle Tyo
2025-06-17 14:01:28 -04:00
committed by GitHub
parent 57babe15ee
commit 0e1ff2644f
18 changed files with 130 additions and 126 deletions

View File

@@ -7,12 +7,13 @@ using Robust.Shared.Console;
namespace Content.Server.NPC.Commands;
[AdminCommand(AdminFlags.Debug)]
public sealed class NPCCommand : IConsoleCommand
public sealed class NpcCommand : LocalizedEntityCommands
{
public string Command => "npc";
public string Description => "Opens the debug window for NPCs";
public string Help => $"{Command}";
public void Execute(IConsoleShell shell, string argStr, string[] args)
[Dependency] private readonly EuiManager _euiManager = default!;
public override string Command => "npc";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (shell.Player is not { } playerSession)
{
@@ -20,7 +21,6 @@ public sealed class NPCCommand : IConsoleCommand
return;
}
var euiManager = IoCManager.Resolve<EuiManager>();
euiManager.OpenEui(new NPCEui(), playerSession);
_euiManager.OpenEui(new NPCEui(), playerSession);
}
}