Improve emulation of live tarkov data - Remove hideout data from bots that are not pmcs or pscavs prior to being sent to client

This commit is contained in:
Dev 2023-07-25 17:44:23 +01:00
parent b16d849280
commit 903dbdf432

View File

@ -153,6 +153,12 @@ export class BotGenerator
this.seasonalEventService.removeChristmasItemsFromBotInventory(botJsonTemplate.inventory, botGenerationDetails.role);
}
// Remove hideout data if bot is not a PMC or pscav
if (!(botGenerationDetails.isPmc || botGenerationDetails.isPlayerScav))
{
bot.Hideout = null;
}
bot.Info.Experience = botLevel.exp;
bot.Info.Level = botLevel.level;
bot.Info.Settings.Experience = this.randomUtil.getInt(botJsonTemplate.experience.reward.min, botJsonTemplate.experience.reward.max);