From 192d157f2a698f1254af463e3a316b307fb2e442 Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 1 Oct 2025 10:35:26 +0100 Subject: [PATCH] Correctly set pmc Aid to 0 on generation --- Libraries/SPTarkov.Server.Core/Generators/BotGenerator.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Generators/BotGenerator.cs b/Libraries/SPTarkov.Server.Core/Generators/BotGenerator.cs index 38d0238b..a83fe672 100644 --- a/Libraries/SPTarkov.Server.Core/Generators/BotGenerator.cs +++ b/Libraries/SPTarkov.Server.Core/Generators/BotGenerator.cs @@ -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 /// /// bot to update - /// /// - 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; } ///