Remove trailing spaces and fix isPlayerScav check to generate correct health pool

This commit is contained in:
Kaeno 2024-07-09 10:25:24 +01:00
parent 28b3afef8a
commit 18af98e86d
3 changed files with 3 additions and 4 deletions

View File

@ -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));
} }

View File

@ -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;
} }

View File

@ -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)