Only set LowerNickname for PMCs

This commit is contained in:
Chomp
2025-01-26 09:23:29 +00:00
parent 2989f97bf1
commit f52c39dc75
+5 -1
View File
@@ -199,7 +199,11 @@ public class BotGenerator(
botRoleLowercase,
_botConfig.BotRolesThatMustHaveUniqueName
);
bot.Info.LowerNickname = bot.Info.Nickname.ToLower();
// Only Pmcs should have a lower nickname
bot.Info.LowerNickname = botGenerationDetails.IsPmc.GetValueOrDefault(false)
? bot.Info.Nickname.ToLower()
: string.Empty;
// Only run when generating a 'fake' playerscav, not actual player scav
if (!botGenerationDetails.IsPlayerScav.GetValueOrDefault(false) && ShouldSimulatePlayerScav(botRoleLowercase))