(d276173e6) Enable money cheat command for release builds, but make it client only.

This commit is contained in:
Joonas Rikkonen
2019-05-23 15:07:15 +03:00
parent 9b56fa9832
commit 6396b825f1
2 changed files with 14 additions and 14 deletions
@@ -401,6 +401,18 @@ namespace Barotrauma
GameMain.CharacterEditorScreen.Select();
}));
commands.Add(new Command("money", "", args =>
{
if (args.Length == 0) { return; }
if (GameMain.GameSession.GameMode is CampaignMode campaign)
{
if (int.TryParse(args[0], out int money))
{
campaign.Money += money;
}
}
}, isCheat: true));
AssignRelayToServer("kick", false);
AssignRelayToServer("kickid", false);
AssignRelayToServer("ban", false);