File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/tarkov-data-manager/jobs Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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' ) {
You can’t perform that action at this time.
0 commit comments