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

Expanded craft search code to also check for craft count

This commit is contained in:
Dev 2024-06-06 11:34:03 +01:00
parent abdee0bb75
commit ccb351a2dd

View File

@ -1008,7 +1008,8 @@ export class QuestHelper
(prod) =>
prod.areaType === Number.parseInt(craftUnlockReward.traderId)
&& prod.requirements.some((x) => x.requiredLevel === craftUnlockReward.loyaltyLevel)
&& prod.endProduct === craftUnlockReward.items[0]._tpl,
&& prod.endProduct === craftUnlockReward.items[0]._tpl
&& prod.count === (craftUnlockReward.items[0].upd?.StackObjectsCount ?? 1),
);
// More/less than 1 match, above filtering wasn't strict enough