Handle quest failures
This commit is contained in:
parent
9dbd3d1acf
commit
861987406e
@ -179,6 +179,10 @@ export class InventoryCallbacks
|
|||||||
return this.inventoryController.setFavoriteItem(pmcData, body, sessionId);
|
return this.inventoryController.setFavoriteItem(pmcData, body, sessionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO - MOVE INTO QUEST CODE
|
||||||
|
* Handle game/profile/items/moving - QuestFail
|
||||||
|
*/
|
||||||
public failQuest(pmcData: IPmcData, request: IFailQuestRequestData, sessionID: string): IItemEventRouterResponse
|
public failQuest(pmcData: IPmcData, request: IFailQuestRequestData, sessionID: string): IItemEventRouterResponse
|
||||||
{
|
{
|
||||||
return this.questController.failQuest(pmcData, request, sessionID);
|
return this.questController.failQuest(pmcData, request, sessionID);
|
||||||
|
@ -97,6 +97,8 @@ export class InventoryItemEventRouter extends ItemEventRouterDefinition
|
|||||||
return this.inventoryCallbacks.redeemProfileReward(pmcData, body, sessionID);
|
return this.inventoryCallbacks.redeemProfileReward(pmcData, body, sessionID);
|
||||||
case ItemEventActions.SET_FAVORITE_ITEMS:
|
case ItemEventActions.SET_FAVORITE_ITEMS:
|
||||||
return this.inventoryCallbacks.setFavoriteItem(pmcData, body, sessionID);
|
return this.inventoryCallbacks.setFavoriteItem(pmcData, body, sessionID);
|
||||||
|
case ItemEventActions.QUEST_FAIL:
|
||||||
|
return this.inventoryCallbacks.failQuest(pmcData, body, sessionID);
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unhandled event ${url} request: ${JSON.stringify(body)}`);
|
throw new Error(`Unhandled event ${url} request: ${JSON.stringify(body)}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user