Added traitor code words

Fixed host never being traitor
This commit is contained in:
Alex Noir
2017-12-03 19:39:31 +03:00
parent ca535d295f
commit 63f8760b86
4 changed files with 132 additions and 2 deletions
@@ -102,6 +102,16 @@ namespace Barotrauma
NewMessage("***************", Color.Cyan);
}));
commands.Add(new Command("traitorlist", "traitorlist: List all the traitors and their targets.", (string[] args) =>
{
if (GameMain.Server == null) return;
TraitorManager traitorManager = GameMain.Server.TraitorManager;
if (traitorManager == null) return;
foreach (Traitor T in traitorManager.TraitorList)
{
NewMessage("- Traitor " + T.Character.Name + "'s target is " + T.TargetCharacter.Name + ".", Color.Cyan);
}
}));
commands.Add(new Command("createfilelist", "", (string[] args) =>
{