Skip to content

Commit 08c287b

Browse files
committed
fix missing prestige tasks
1 parent 933a1fc commit 08c287b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tarkov-data-manager/jobs/update-quests.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class UpdateQuestsJob extends DataJob {
127127
const quests = {
128128
Task: [],
129129
};
130+
this.Tasks = quests.Task;
130131
allQuests[gameMode.name] = quests;
131132

132133
for (const questId in this.rawQuestData) {
@@ -1867,6 +1868,12 @@ class UpdateQuestsJob extends DataJob {
18671868
},
18681869
],
18691870
};
1871+
prestigeData.conditions = prestigeData.conditions.filter(condition => {
1872+
if (condition.type !== 'taskStatus') {
1873+
return true;
1874+
}
1875+
return this.Tasks.some(t => t.id === condition.task);
1876+
});
18701877
await this.loadRewards(prestigeData, 'rewards', prestige.rewards);
18711878
for (const reward of prestigeData.rewards.customization) {
18721879
if (reward.customizationType !== 'Stub') {

0 commit comments

Comments
 (0)