From f52c39dc757ed1ed8b11bdd0beb929b3c9e4ec94 Mon Sep 17 00:00:00 2001 From: Chomp Date: Sun, 26 Jan 2025 09:23:29 +0000 Subject: [PATCH] Only set `LowerNickname` for PMCs --- Libraries/Core/Generators/BotGenerator.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Libraries/Core/Generators/BotGenerator.cs b/Libraries/Core/Generators/BotGenerator.cs index a2458f6c..c8133891 100644 --- a/Libraries/Core/Generators/BotGenerator.cs +++ b/Libraries/Core/Generators/BotGenerator.cs @@ -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))