From 808ffbea349578edf7d15a030899efcb18beed33 Mon Sep 17 00:00:00 2001 From: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com> Date: Fri, 17 Feb 2023 15:51:13 -0600 Subject: [PATCH] Move artifact verbs from admin menu to debug menu (#14155) --- .../Administration/Systems/AdminVerbSystem.cs | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) 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 && -- 2.52.0