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:
parent
abdee0bb75
commit
ccb351a2dd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user