Remove trailing spaces and fix isPlayerScav check to generate correct health pool
This commit is contained in:
parent
28b3afef8a
commit
18af98e86d
@ -169,7 +169,6 @@ export class ProfileCallbacks
|
||||
sessionId: string,
|
||||
): IGetBodyResponseData<boolean>
|
||||
{
|
||||
|
||||
return this.httpResponse.getBody(this.profileController.setChosenProfileIcon(sessionId, info));
|
||||
}
|
||||
|
||||
|
@ -501,8 +501,8 @@ export class ProfileController
|
||||
{
|
||||
profileToUpdate.Info.SelectedMemberCategory = request.memberCategory;
|
||||
}
|
||||
|
||||
if(request.squadInviteRestriction !== null)
|
||||
|
||||
if (request.squadInviteRestriction !== null)
|
||||
{
|
||||
profileToUpdate.Info.SquadInviteRestriction = request.squadInviteRestriction;
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ export class BotGenerator
|
||||
);
|
||||
bot.Info.Settings.StandingForKill = botJsonTemplate.experience.standingForKill;
|
||||
bot.Info.Voice = this.weightedRandomHelper.getWeightedValue<string>(botJsonTemplate.appearance.voice);
|
||||
bot.Health = this.generateHealth(botJsonTemplate.health, bot.Info.Side === "Savage");
|
||||
bot.Health = this.generateHealth(botJsonTemplate.health, botGenerationDetails.isPlayerScav);
|
||||
bot.Skills = this.generateSkills(<any>botJsonTemplate.skills); // TODO: fix bad type, bot jsons store skills in dict, output needs to be array
|
||||
|
||||
if (botGenerationDetails.isPmc)
|
||||
|
Loading…
Reference in New Issue
Block a user