Do not return output object from failQuest()
This commit is contained in:
parent
378bb7fdae
commit
fc1a1432ee
@ -997,6 +997,8 @@ export class QuestController
|
|||||||
output: IItemEventRouterResponse,
|
output: IItemEventRouterResponse,
|
||||||
): IItemEventRouterResponse
|
): IItemEventRouterResponse
|
||||||
{
|
{
|
||||||
return this.questHelper.failQuest(pmcData, request, sessionID, output);
|
this.questHelper.failQuest(pmcData, request, sessionID, output);
|
||||||
|
|
||||||
|
return output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -677,14 +677,13 @@ export class QuestHelper
|
|||||||
* @param failRequest Fail quest request data
|
* @param failRequest Fail quest request data
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
* @param output Client output
|
* @param output Client output
|
||||||
* @returns Item event router response
|
|
||||||
*/
|
*/
|
||||||
public failQuest(
|
public failQuest(
|
||||||
pmcData: IPmcData,
|
pmcData: IPmcData,
|
||||||
failRequest: IFailQuestRequestData,
|
failRequest: IFailQuestRequestData,
|
||||||
sessionID: string,
|
sessionID: string,
|
||||||
output: IItemEventRouterResponse = null,
|
output: IItemEventRouterResponse = null,
|
||||||
): IItemEventRouterResponse
|
): void
|
||||||
{
|
{
|
||||||
// Prepare response to send back to client
|
// Prepare response to send back to client
|
||||||
if (!output)
|
if (!output)
|
||||||
@ -716,8 +715,6 @@ export class QuestHelper
|
|||||||
}
|
}
|
||||||
|
|
||||||
output.profileChanges[sessionID].quests.push(...this.failedUnlocked(failRequest.qid, sessionID));
|
output.profileChanges[sessionID].quests.push(...this.failedUnlocked(failRequest.qid, sessionID));
|
||||||
|
|
||||||
return output;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user