Merge branch '3.8.0' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.0
This commit is contained in:
commit
134d789a0e
@ -1379,9 +1379,15 @@ export class ProfileFixerService
|
|||||||
const quests = this.databaseServer.getTables().templates.quests;
|
const quests = this.databaseServer.getTables().templates.quests;
|
||||||
const profileQuests = pmcProfile.Quests;
|
const profileQuests = pmcProfile.Quests;
|
||||||
|
|
||||||
|
let repeatableQuests: IRepeatableQuest[] = [];
|
||||||
|
for (const repeatableQuestType of pmcProfile.RepeatableQuests)
|
||||||
|
{
|
||||||
|
repeatableQuests.push(...repeatableQuestType.activeQuests);
|
||||||
|
}
|
||||||
|
|
||||||
for (let i = 0; i < profileQuests.length; i++)
|
for (let i = 0; i < profileQuests.length; i++)
|
||||||
{
|
{
|
||||||
if (!quests[profileQuests[i].qid])
|
if (!quests[profileQuests[i].qid] && !repeatableQuests.find(x => x._id == profileQuests[i].qid))
|
||||||
{
|
{
|
||||||
profileQuests.splice(i, 1);
|
profileQuests.splice(i, 1);
|
||||||
this.logger.success("Successfully removed orphaned quest that doesnt exist in our quest data");
|
this.logger.success("Successfully removed orphaned quest that doesnt exist in our quest data");
|
||||||
|
Loading…
Reference in New Issue
Block a user