From e513b379f407fafef5280abd15791a92d71523b4 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 15 Aug 2018 11:46:54 +0300 Subject: [PATCH] Added parameter autocompletion to the kill command --- Barotrauma/BarotraumaShared/Source/DebugConsole.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs index ebeaf4076..a795bc948 100644 --- a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs @@ -1513,6 +1513,13 @@ namespace Barotrauma { Character killedCharacter = (args.Length == 0) ? client.Character : FindMatchingCharacter(args); killedCharacter?.AddDamage(CauseOfDeath.Damage, killedCharacter.MaxHealth * 2, null); + }, + () => + { + return new string[][] + { + Character.CharacterList.Select(c => c.Name).Distinct().ToArray() + }; })); commands.Add(new Command("killmonsters", "killmonsters: Immediately kills all AI-controlled enemies in the level.", (string[] args) =>