Updated findAndAddHideoutProductionIdToProfile() to also compare the quest id when finding the relevant craft - should fix craft unlock error with Network Provider - Part 2

This commit is contained in:
Dev 2024-06-24 22:29:01 +01:00
parent 5d40c36215
commit 836df0ce9d

View File

@ -1010,6 +1010,7 @@ export class QuestHelper
const matchingProductions = hideoutProductions.filter(
(prod) =>
prod.areaType === Number.parseInt(craftUnlockReward.traderId)
&& prod.requirements.some((requirement) => requirement.questId === questDetails._id)
&& prod.requirements.some((x) => x.requiredLevel === craftUnlockReward.loyaltyLevel)
&& prod.endProduct === craftUnlockReward.items[0]._tpl
&& prod.count === (craftUnlockReward.items[0].upd?.StackObjectsCount ?? 1),