diff --git a/project/src/controllers/DialogueController.ts b/project/src/controllers/DialogueController.ts index 608954b3..2e0ae4ba 100644 --- a/project/src/controllers/DialogueController.ts +++ b/project/src/controllers/DialogueController.ts @@ -149,6 +149,7 @@ export class DialogueController Nickname: profile.characters.pmc.Info.Nickname, Side: profile.characters.pmc.Info.Side, MemberCategory: profile.characters.pmc.Info.MemberCategory, + SelectedMemberCategory: profile.characters.pmc.Info.SelectedMemberCategory, }, }); } @@ -249,6 +250,7 @@ export class DialogueController Side: pmcProfile.Info.Side, Level: pmcProfile.Info.Level, MemberCategory: pmcProfile.Info.MemberCategory, + SelectedMemberCategory: pmcProfile.Info.SelectedMemberCategory, }, }); } diff --git a/project/src/helpers/Dialogue/CommandoDialogueChatBot.ts b/project/src/helpers/Dialogue/CommandoDialogueChatBot.ts index 03497fd2..83b55a08 100644 --- a/project/src/helpers/Dialogue/CommandoDialogueChatBot.ts +++ b/project/src/helpers/Dialogue/CommandoDialogueChatBot.ts @@ -23,7 +23,13 @@ export class CommandoDialogueChatBot extends AbstractDialogueChatBot return { _id: "sptCommando", aid: 1234567, - Info: { Level: 1, MemberCategory: MemberCategory.DEVELOPER, Nickname: "Commando", Side: "Usec" }, + Info: { + Level: 1, + MemberCategory: MemberCategory.DEVELOPER, + SelectedMemberCategory: MemberCategory.DEVELOPER, + Nickname: "Commando", + Side: "Usec", + }, }; } diff --git a/project/src/helpers/Dialogue/SptDialogueChatBot.ts b/project/src/helpers/Dialogue/SptDialogueChatBot.ts index cd4b539f..1eeb348c 100644 --- a/project/src/helpers/Dialogue/SptDialogueChatBot.ts +++ b/project/src/helpers/Dialogue/SptDialogueChatBot.ts @@ -40,6 +40,7 @@ export class SptDialogueChatBot implements IDialogueChatBot Info: { Level: 1, MemberCategory: MemberCategory.DEVELOPER, + SelectedMemberCategory: MemberCategory.DEVELOPER, Nickname: this.coreConfig.sptFriendNickname, Side: "Usec", }, diff --git a/project/src/services/PmcChatResponseService.ts b/project/src/services/PmcChatResponseService.ts index 8d7e646f..03f4202d 100644 --- a/project/src/services/PmcChatResponseService.ts +++ b/project/src/services/PmcChatResponseService.ts @@ -107,6 +107,7 @@ export class PmcChatResponseService Side: killerDetailsInCache.Info.Side, Level: killerDetailsInCache.Info.Level, MemberCategory: killerDetailsInCache.Info.MemberCategory, + SelectedMemberCategory: killerDetailsInCache.Info.SelectedMemberCategory, }, }; @@ -288,6 +289,9 @@ export class PmcChatResponseService MemberCategory.SHERPA, MemberCategory.DEVELOPER, ]; + + const chosenCategory = this.randomUtil.getArrayValue(categories); + return { _id: pmcVictim.Name, aid: this.hashUtil.generateAccountId(), // TODO- pass correct value @@ -295,7 +299,8 @@ export class PmcChatResponseService Nickname: pmcVictim.Name, Level: pmcVictim.Level, Side: pmcVictim.Side, - MemberCategory: this.randomUtil.getArrayValue(categories), + MemberCategory: chosenCategory, + SelectedMemberCategory: chosenCategory, }, }; }