diff --git a/project/src/helpers/QuestHelper.ts b/project/src/helpers/QuestHelper.ts index fdac5ef6..1d8bdf06 100644 --- a/project/src/helpers/QuestHelper.ts +++ b/project/src/helpers/QuestHelper.ts @@ -929,7 +929,16 @@ export class QuestHelper { // e.g. 'Success' or 'AvailableForFinish' const questStateAsString = QuestStatus[state]; + const gameVersion = pmcProfile.Info.GameVersion; for (const reward of questDetails.rewards[questStateAsString]) { + // Handle quest reward availability for different game versions, notAvailableInGameEditions currently not used + if (reward.availableInGameEditions?.length > 0 && !reward.availableInGameEditions?.includes(gameVersion)){ + continue; + } + if (reward.notAvailableInGameEditions?.length > 0 && reward.notAvailableInGameEditions?.includes(gameVersion)){ + continue; + } + switch (reward.type) { case QuestRewardType.SKILL: this.profileHelper.addSkillPointsToPlayer(