diff --git a/Generator/Helpers/DifficultyHelper.cs b/Generator/Helpers/DifficultyHelper.cs index 7e3c930..62da0e6 100644 --- a/Generator/Helpers/DifficultyHelper.cs +++ b/Generator/Helpers/DifficultyHelper.cs @@ -30,6 +30,13 @@ namespace Generator.Helpers { var settings = difficultySettingsJsons.FirstOrDefault(x => x.Key.Contains(difficulty)); + // No difficulty settings found, find any settings file and use that + // This is required for many bot types that only have 'normal' difficulty settings + if (settings.Key == null) + { + settings = difficultySettingsJsons.FirstOrDefault(x => x.Key != null); + } + SaveSettingsIntoBotFile(bot, difficulty, settings.Value); } }