mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Removed need for a separate chosenGameVersion
property
This commit is contained in:
parent
86380e845a
commit
e100c29296
@ -209,12 +209,11 @@ export class BotGenerator
|
|||||||
bot.Health = this.generateHealth(botJsonTemplate.health, bot.Info.Side === "Savage");
|
bot.Health = this.generateHealth(botJsonTemplate.health, bot.Info.Side === "Savage");
|
||||||
bot.Skills = this.generateSkills(<any>botJsonTemplate.skills); // TODO: fix bad type, bot jsons store skills in dict, output needs to be array
|
bot.Skills = this.generateSkills(<any>botJsonTemplate.skills); // TODO: fix bad type, bot jsons store skills in dict, output needs to be array
|
||||||
|
|
||||||
let chosenGameVersion = bot.Info.GameVersion;
|
|
||||||
if (botGenerationDetails.isPmc)
|
if (botGenerationDetails.isPmc)
|
||||||
{
|
{
|
||||||
bot.Info.IsStreamerModeAvailable = true; // Set to true so client patches can pick it up later - client sometimes alters botrole to assaultGroup
|
bot.Info.IsStreamerModeAvailable = true; // Set to true so client patches can pick it up later - client sometimes alters botrole to assaultGroup
|
||||||
chosenGameVersion = this.setRandomisedGameVersionAndCategory(bot.Info);
|
this.setRandomisedGameVersionAndCategory(bot.Info);
|
||||||
if (chosenGameVersion === GameEditions.UNHEARD)
|
if (bot.Info.GameVersion === GameEditions.UNHEARD)
|
||||||
{
|
{
|
||||||
this.addAdditionalPocketLootWeightsForUnheardBot(botJsonTemplate);
|
this.addAdditionalPocketLootWeightsForUnheardBot(botJsonTemplate);
|
||||||
}
|
}
|
||||||
@ -228,7 +227,7 @@ export class BotGenerator
|
|||||||
botRole,
|
botRole,
|
||||||
botGenerationDetails.isPmc,
|
botGenerationDetails.isPmc,
|
||||||
botLevel.level,
|
botLevel.level,
|
||||||
chosenGameVersion,
|
bot.Info.GameVersion,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.botConfig.botRolesWithDogTags.includes(botRole))
|
if (this.botConfig.botRolesWithDogTags.includes(botRole))
|
||||||
@ -294,7 +293,7 @@ export class BotGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Choose various appearance settings for a bot using weights
|
* Choose various appearance settings for a bot using weights: head/body/feet/hands
|
||||||
* @param bot Bot to adjust
|
* @param bot Bot to adjust
|
||||||
* @param appearance Appearance settings to choose from
|
* @param appearance Appearance settings to choose from
|
||||||
* @param botGenerationDetails Generation details
|
* @param botGenerationDetails Generation details
|
||||||
|
Loading…
x
Reference in New Issue
Block a user