Skip to content

Commit 17281d3

Browse files
committed
add quest available delays
1 parent fe4023c commit 17281d3

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"5ae3270f86f77445ba41d4dd": {
3+
"min": 75600,
4+
"max": 75600
5+
},
6+
"665eeca92f7aedcc900b0437": {
7+
"min": 43200,
8+
"max": 46800
9+
},
10+
"639872fa9b4fb827b200d8e5": {
11+
"min": 75600,
12+
"max": 75600
13+
},
14+
"639872fe8871e1272b10ccf6": {
15+
"min": 75600,
16+
"max": 75600
17+
},
18+
"63a5cf262964a7488f5243ce": {
19+
"min": 75600,
20+
"max": 75600
21+
},
22+
"625d6ffaf7308432be1d44c5": {
23+
"min": 3600,
24+
"max": 32400
25+
},
26+
"625d70031ed3bb5bcc5bd9e5": {
27+
"min": 86400,
28+
"max": 86400
29+
},
30+
"625d7005a4eb80027c4f2e09": {
31+
"min": 86400,
32+
"max": 86400
33+
},
34+
"639135cd8ba6894d155e77cb": {
35+
"min": 86400,
36+
"max": 86400
37+
},
38+
"63966fbeea19ac7ed845db2e": {
39+
"min": 36000,
40+
"max": 36000
41+
},
42+
"63966fccac6f8f3c677b9d89": {
43+
"min": 36000,
44+
"max": 36000
45+
},
46+
"63966fd9ea19ac7ed845db30": {
47+
"min": 36000,
48+
"max": 36000
49+
},
50+
"63966fe7ea74a47c2d3fc0e6": {
51+
"min": 36000,
52+
"max": 36000
53+
},
54+
"63966ff54c3ef01b6f3ffad8": {
55+
"min": 36000,
56+
"max": 36000
57+
},
58+
"639670029113f06a7c3b2377": {
59+
"min": 36000,
60+
"max": 36000
61+
},
62+
"6396700fea19ac7ed845db32": {
63+
"min": 36000,
64+
"max": 36000
65+
},
66+
"6396701b9113f06a7c3b2379": {
67+
"min": 36000,
68+
"max": 36000
69+
},
70+
"63967028c4a91c5cb76abd81": {
71+
"min": 36000,
72+
"max": 36000
73+
},
74+
"64f1cc571a5f313cb144bf90": {
75+
"min": 36000,
76+
"max": 36000
77+
},
78+
"626bd75d5bef5d7d590bd415": {
79+
"min": 75600,
80+
"max": 79200
81+
},
82+
"639873003693c63d86328f25": {
83+
"min": 75600,
84+
"max": 75600
85+
},
86+
"5b47825886f77468074618d3": {
87+
"min": 75600,
88+
"max": 75600
89+
},
90+
"64f83bb69878a0569d6ecfbe": {
91+
"min": 75600,
92+
"max": 82800
93+
},
94+
"64f83bcdde58fc437700d8fa": {
95+
"min": 75600,
96+
"max": 82800
97+
},
98+
"64f83bd983cfca080a362c82": {
99+
"min": 75600,
100+
"max": 82800
101+
}
102+
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class UpdateQuestsJob extends DataJob {
3434
this.changedQuests,
3535
this.removedQuests,
3636
this.neededKeys,
37+
this.questDelays,
3738
this.questConfig,
3839
this.s3Images,
3940
] = await Promise.all([
@@ -61,6 +62,7 @@ class UpdateQuestsJob extends DataJob {
6162
fs.readFile(path.join(import.meta.dirname, '..', 'data', 'changed_quests.json')).then(json => JSON.parse(json)),
6263
fs.readFile(path.join(import.meta.dirname, '..', 'data', 'removed_quests.json')).then(json => JSON.parse(json)),
6364
fs.readFile(path.join(import.meta.dirname, '..', 'data', 'needed_keys.json')).then(json => JSON.parse(json)),
65+
fs.readFile(path.join(import.meta.dirname, '..', 'data', 'quest_delays.json')).then(json => JSON.parse(json)),
6466
tarkovData.questConfig(),
6567
getLocalBucketContents(),
6668
]);
@@ -265,6 +267,11 @@ class UpdateQuestsJob extends DataJob {
265267
for (const quest of quests.Task) {
266268
quest.normalizedName = this.normalizeName(this.locales.en[quest.name])+(quest.factionName !== 'Any' ? `-${this.normalizeName(quest.factionName)}` : '');
267269

270+
if (this.questDelays[quest.id]) {
271+
quest.availableDelaySecondsMin = this.questDelays[quest.id].min;
272+
quest.availableDelaySecondsMax = this.questDelays[quest.id].max;
273+
}
274+
268275
const removeReqs = [];
269276
for (const req of quest.taskRequirements) {
270277
const questIncluded = quests.Task.some(q => q.id === req.task);

0 commit comments

Comments
 (0)