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:
parent
5d40c36215
commit
836df0ce9d
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user