From 6e33a9c37e9527e5d04148163a838615aa97eca9 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 25 Jul 2023 20:37:45 +0100 Subject: [PATCH] Add functionality to fail quests on server after failing them in-raid, fixes failing colleagues part 3 by completing sadist --- project/assets/database/templates/quests.json | 17 ----------------- project/src/helpers/InRaidHelper.ts | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/project/assets/database/templates/quests.json b/project/assets/database/templates/quests.json index 925de1ab..516b494f 100644 --- a/project/assets/database/templates/quests.json +++ b/project/assets/database/templates/quests.json @@ -52036,23 +52036,6 @@ "visibilityConditions": [] }, "dynamicLocale": false - }, - { - "_parent": "Quest", - "_props": { - "availableAfter": 0, - "dispersion": 0, - "dynamicLocale": false, - "id": "5edac4fb16d984318871ba2e", - "index": 1, - "parentId": "", - "status": [ - 4 - ], - "target": "5edab4b1218d181e29451435", - "visibilityConditions": [] - }, - "dynamicLocale": false } ] }, diff --git a/project/src/helpers/InRaidHelper.ts b/project/src/helpers/InRaidHelper.ts index cc9323c7..f676fa83 100644 --- a/project/src/helpers/InRaidHelper.ts +++ b/project/src/helpers/InRaidHelper.ts @@ -181,7 +181,7 @@ export class InRaidHelper if (preRaidQuest) { // post-raid quest is failed but wasn't pre-raid - if (postRaidQuest.status === QuestStatus.Fail && preRaidQuest.status !== QuestStatus.Fail) + if (postRaidQuest.status === "Fail" && preRaidQuest.status !== QuestStatus.Fail) { // Send failed message const failBody: IFailQuestRequestData = {