Add missing id property to accept quest client response

This commit is contained in:
Dev 2023-10-19 21:06:09 +01:00
parent 11ae41dcff
commit fa2a8c6513

View File

@ -383,11 +383,12 @@ export class QuestController
const repeatableSettings = pmcData.RepeatableQuests.find(x => x.name === repeatableQuestProfile.sptRepatableGroupName); const repeatableSettings = pmcData.RepeatableQuests.find(x => x.name === repeatableQuestProfile.sptRepatableGroupName);
const responseData: IPmcDataRepeatableQuest = { const responseData: IPmcDataRepeatableQuest = {
activeQuests: [repeatableQuestProfile], id: repeatableSettings.id,
name: repeatableSettings.name, name: repeatableSettings.name,
inactiveQuests: [],
endTime: repeatableSettings.endTime, endTime: repeatableSettings.endTime,
changeRequirement: repeatableSettings.changeRequirement changeRequirement: repeatableSettings.changeRequirement,
activeQuests: [repeatableQuestProfile],
inactiveQuests: []
}; };
acceptQuestResponse.profileChanges[sessionID].repeatableQuests = [responseData]; acceptQuestResponse.profileChanges[sessionID].repeatableQuests = [responseData];