Fixed some PMCs not having their game version flair when they kill you

This commit is contained in:
Dev 2024-06-17 09:57:47 +01:00
parent e100c29296
commit 357848ba9f

View File

@ -583,6 +583,7 @@ export class BotGenerator
*/
protected setRandomisedGameVersionAndCategory(botInfo: Info): string
{
// Special case
if (botInfo.Nickname.toLowerCase() === "nikita")
{
botInfo.GameVersion = GameEditions.UNHEARD;
@ -593,9 +594,20 @@ export class BotGenerator
// More color = more op
botInfo.GameVersion = this.weightedRandomHelper.getWeightedValue(this.pmcConfig.gameVersionWeight);
botInfo.MemberCategory = Number.parseInt(
this.weightedRandomHelper.getWeightedValue(this.pmcConfig.accountTypeWeight),
);
// EOD and UhD must have a category of 2 for their unique icons to show
if ([GameEditions.EDGE_OF_DARKNESS, GameEditions.UNHEARD].includes(<any>botInfo.GameVersion))
{
botInfo.MemberCategory = 2;
}
else
{
// Everyone else gets a weighted randomised category
botInfo.MemberCategory = Number.parseInt(
this.weightedRandomHelper.getWeightedValue(this.pmcConfig.accountTypeWeight),
10,
);
}
return botInfo.GameVersion;
}