From: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com> Date: Fri, 17 Feb 2023 21:51:13 +0000 (-0600) Subject: Move artifact verbs from admin menu to debug menu (#14155) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=808ffbea349578edf7d15a030899efcb18beed33;p=space-station-14.git Move artifact verbs from admin menu to debug menu (#14155) --- diff --git a/Content.Server/Administration/Systems/AdminVerbSystem.cs b/Content.Server/Administration/Systems/AdminVerbSystem.cs index 022a4662af..2c1d698e9e 100644 --- a/Content.Server/Administration/Systems/AdminVerbSystem.cs +++ b/Content.Server/Administration/Systems/AdminVerbSystem.cs @@ -119,29 +119,6 @@ namespace Content.Server.Administration.Systems }); } - // XenoArcheology - if (TryComp(args.Target, out var artifact)) - { - // make artifact always active (by adding timer trigger) - args.Verbs.Add(new Verb() - { - Text = Loc.GetString("artifact-verb-make-always-active"), - Category = VerbCategory.Admin, - Act = () => EntityManager.AddComponent(args.Target), - Disabled = EntityManager.HasComponent(args.Target), - Impact = LogImpact.High - }); - - // force to activate artifact ignoring timeout - args.Verbs.Add(new Verb() - { - Text = Loc.GetString("artifact-verb-activate"), - Category = VerbCategory.Admin, - Act = () => _artifactSystem.ForceActivateArtifact(args.Target, component: artifact), - Impact = LogImpact.High - }); - } - // TeleportTo args.Verbs.Add(new Verb { @@ -238,6 +215,29 @@ namespace Content.Server.Administration.Systems args.Verbs.Add(verb); } + // XenoArcheology + if (TryComp(args.Target, out var artifact)) + { + // make artifact always active (by adding timer trigger) + args.Verbs.Add(new Verb() + { + Text = Loc.GetString("artifact-verb-make-always-active"), + Category = VerbCategory.Debug, + Act = () => EntityManager.AddComponent(args.Target), + Disabled = EntityManager.HasComponent(args.Target), + Impact = LogImpact.High + }); + + // force to activate artifact ignoring timeout + args.Verbs.Add(new Verb() + { + Text = Loc.GetString("artifact-verb-activate"), + Category = VerbCategory.Debug, + Act = () => _artifactSystem.ForceActivateArtifact(args.Target, component: artifact), + Impact = LogImpact.High + }); + } + // Make Sentient verb if (_groupController.CanCommand(player, "makesentient") && args.User != args.Target &&