Correctly set pmc Aid to 0 on generation

This commit is contained in:
Chomp
2025-10-01 10:35:26 +01:00
parent 4c2bd03ef6
commit 192d157f2a
@@ -179,7 +179,7 @@ public class BotGenerator(
botGenerationDetails.BotLevel = botLevelDetails.Level.GetValueOrDefault();
// Generate Id/AId for bot
AddIdsToBot(bot, botGenerationDetails);
AddIdsToBot(bot);
// Only filter bot equipment, never players
if (!botGenerationDetails.IsPlayerScav)
@@ -641,12 +641,11 @@ public class BotGenerator(
/// Generate an id+aid for a bot and apply
/// </summary>
/// <param name="bot">bot to update</param>
/// <param name="botGenerationDetails"></param>
/// <returns></returns>
protected void AddIdsToBot(BotBase bot, BotGenerationDetails botGenerationDetails)
protected void AddIdsToBot(BotBase bot)
{
bot.Id = new MongoId();
bot.Aid = botGenerationDetails.IsPmc ? hashUtil.GenerateAccountId() : 0;
bot.Aid = 0;
}
/// <summary>