Localised various error messages

This commit is contained in:
Chomp
2025-06-09 09:35:47 +01:00
parent 2ff286e5ed
commit 57c9ff477e
16 changed files with 65 additions and 53 deletions
@@ -110,15 +110,14 @@ public class BotController(
var result = new Dictionary<string, Dictionary<string, DifficultyCategories>>();
var botTypesDb = _databaseService.GetBots().Types;
if (botTypesDb is null)
{
return result;
}
//Get all bot types as sting array
var botTypes = Enum.GetValues<WildSpawnType>().Select(item => item.ToString()).ToList();
foreach (var botType in botTypes)
{
if (botTypesDb is null)
{
continue;
}
// If bot is usec/bear, swap to different name
var botTypeLower = _botHelper.IsBotPmc(botType)
? _botHelper.GetPmcSideByRole(botType).ToLower()