]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
`ToPrettyString` in end game rule completions (#16374)
authorKara <lunarautomaton6@gmail.com>
Sat, 13 May 2023 01:40:36 +0000 (18:40 -0700)
committerGitHub <noreply@github.com>
Sat, 13 May 2023 01:40:36 +0000 (11:40 +1000)
Content.Server/GameTicking/GameTicker.GameRule.cs

index 158e6b0085f8e38fd4ff6201426b27eaf0ff0b95..f3845e753a5544112a8597df17d890f8e13da459 100644 (file)
@@ -255,7 +255,8 @@ public sealed partial class GameTicker
 
     private CompletionResult EndGameRuleCompletions(IConsoleShell shell, string[] args)
     {
-        return CompletionResult.FromHintOptions(GetAddedGameRules().Select(u => u.ToString()), "<added rule>");
+        var opts = GetAddedGameRules().Select(ent => new CompletionOption(ent.ToString(), ToPrettyString(ent))).ToList();
+        return CompletionResult.FromHintOptions(opts, "<added rule>");
     }
 
     [AdminCommand(AdminFlags.Fun)]