Skip to content

Commit

Permalink
fix trader assorts
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Aug 23, 2024
1 parent 374a266 commit aaf98c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tarkov-data-manager/jobs/update-trader-assorts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ class UpdateTraderAssortsJob extends DataJob {
cost: assort.barter_scheme[offer._id][0].map(req => {
let reqId = req._tpl;
if (req.side) {
reqId = dogTagSideMap[req.side];
reqId = dogTagSideMap[req.side] ?? reqId;
if (!dogTagSideMap[req.side]) {
console.log(`Invalid side ${req.side} for item ${reqId}`, req);
}
}
return {
item: reqId,
Expand All @@ -109,7 +112,7 @@ class UpdateTraderAssortsJob extends DataJob {
dogTagLevel: req.level,
dogTagSide: req.side,
};
}),
}).filter(Boolean),
};
});
}));
Expand Down

0 comments on commit aaf98c4

Please sign in to comment.