Do not return output object from failQuest()

This commit is contained in:
Dev 2024-03-12 21:29:50 +00:00
parent 378bb7fdae
commit fc1a1432ee
2 changed files with 4 additions and 5 deletions

View File

@ -997,6 +997,8 @@ export class QuestController
output: IItemEventRouterResponse,
): IItemEventRouterResponse
{
return this.questHelper.failQuest(pmcData, request, sessionID, output);
this.questHelper.failQuest(pmcData, request, sessionID, output);
return output;
}
}

View File

@ -677,14 +677,13 @@ export class QuestHelper
* @param failRequest Fail quest request data
* @param sessionID Session id
* @param output Client output
* @returns Item event router response
*/
public failQuest(
pmcData: IPmcData,
failRequest: IFailQuestRequestData,
sessionID: string,
output: IItemEventRouterResponse = null,
): IItemEventRouterResponse
): void
{
// Prepare response to send back to client
if (!output)
@ -716,8 +715,6 @@ export class QuestHelper
}
output.profileChanges[sessionID].quests.push(...this.failedUnlocked(failRequest.qid, sessionID));
return output;
}
/**