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,
|
sessionId: string,
|
||||||
): IGetBodyResponseData<boolean>
|
): IGetBodyResponseData<boolean>
|
||||||
{
|
{
|
||||||
|
|
||||||
return this.httpResponse.getBody(this.profileController.setChosenProfileIcon(sessionId, info));
|
return this.httpResponse.getBody(this.profileController.setChosenProfileIcon(sessionId, info));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -502,7 +502,7 @@ export class ProfileController
|
|||||||
profileToUpdate.Info.SelectedMemberCategory = request.memberCategory;
|
profileToUpdate.Info.SelectedMemberCategory = request.memberCategory;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(request.squadInviteRestriction !== null)
|
if (request.squadInviteRestriction !== null)
|
||||||
{
|
{
|
||||||
profileToUpdate.Info.SquadInviteRestriction = request.squadInviteRestriction;
|
profileToUpdate.Info.SquadInviteRestriction = request.squadInviteRestriction;
|
||||||
}
|
}
|
||||||
|
@ -206,7 +206,7 @@ export class BotGenerator
|
|||||||
);
|
);
|
||||||
bot.Info.Settings.StandingForKill = botJsonTemplate.experience.standingForKill;
|
bot.Info.Settings.StandingForKill = botJsonTemplate.experience.standingForKill;
|
||||||
bot.Info.Voice = this.weightedRandomHelper.getWeightedValue<string>(botJsonTemplate.appearance.voice);
|
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
|
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)
|
if (botGenerationDetails.isPmc)
|
||||||
|
Loading…
Reference in New Issue
Block a user