]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Move artifact verbs from admin menu to debug menu (#14155)
authorChief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
Fri, 17 Feb 2023 21:51:13 +0000 (15:51 -0600)
committerGitHub <noreply@github.com>
Fri, 17 Feb 2023 21:51:13 +0000 (13:51 -0800)
Content.Server/Administration/Systems/AdminVerbSystem.cs

index 022a4662af18c997504dbee05fee2e25429c04ad..2c1d698e9e2c45712b1431c0f7eb4e6f04c6ad8d 100644 (file)
@@ -119,29 +119,6 @@ namespace Content.Server.Administration.Systems
                     });
                 }
 
-                // XenoArcheology
-                if (TryComp<ArtifactComponent>(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<ArtifactTimerTriggerComponent>(args.Target),
-                        Disabled = EntityManager.HasComponent<ArtifactTimerTriggerComponent>(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<ArtifactComponent>(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<ArtifactTimerTriggerComponent>(args.Target),
+                    Disabled = EntityManager.HasComponent<ArtifactTimerTriggerComponent>(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 &&