0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 13:10:43 -05:00

Updated removeNewBeginningRequirementFromPrestige to check for BOTH New Beginning quest ids as they're no the same between prestige

This commit is contained in:
Chomp 2025-02-12 11:41:20 +00:00
parent 3b436f2a42
commit c39384a37f

View File

@ -135,10 +135,11 @@ export class PostDbLoadService {
}
protected removeNewBeginningRequirementFromPrestige() {
const newBeginningQuestIds = ["6761f28a022f60bb320f3e95", "6761ff17cdc36bd66102e9d0"];
const prestigeDb = this.databaseService.getTemplates().prestige;
for (const prestige of prestigeDb.elements) {
prestige.conditions = prestige.conditions.filter(
(condition) => condition.target !== "6761f28a022f60bb320f3e95",
(condition) => !newBeginningQuestIds.includes(condition.target as string),
);
}
}