Fixed server build errors from previously merged PR

This commit is contained in:
Dev 2024-07-11 09:28:37 +01:00
parent d0f11fd073
commit e1ca9dedc9
4 changed files with 16 additions and 2 deletions

View File

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

View File

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

View File

@ -40,6 +40,7 @@ export class SptDialogueChatBot implements IDialogueChatBot
Info: {
Level: 1,
MemberCategory: MemberCategory.DEVELOPER,
SelectedMemberCategory: MemberCategory.DEVELOPER,
Nickname: this.coreConfig.sptFriendNickname,
Side: "Usec",
},

View File

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