Increase challenge bundle level for s10 & s11 when the quests are set to completed

This commit is contained in:
PRO100KatYT
2024-11-30 18:20:39 +01:00
parent cf91dc321f
commit 9f3a8865b7

View File

@@ -1123,6 +1123,10 @@ express.post("/fortnite/api/game/v2/profile/*/client/ClientQuestLogin", async (r
if (config.Profile.bCompletedSeasonalQuests == true) {
profile.items[ChallengeBundleID].attributes.num_quests_completed = ChallengeBundle.grantedquestinstanceids.length;
profile.items[ChallengeBundleID].attributes.num_progress_quests_completed = ChallengeBundle.grantedquestinstanceids.length;
if ((memory.season == 10 || memory.season == 11) && (ChallengeBundle.templateId.toLowerCase().includes("missionbundle_s10_0") || ChallengeBundle.templateId.toLowerCase() == "challengebundle:missionbundle_s11_stretchgoals2")) {
profile.items[ChallengeBundleID].attributes.level += 1;
}
}
ApplyProfileChanges.push({