Skip to content

Commit

Permalink
fix trader assorts
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Jun 17, 2024
1 parent 1829bd4 commit 480a441
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tarkov-data-manager/jobs/update-trader-assorts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class UpdateTraderAssortsJob extends DataJob {
barter: false,
_items: offer._items,
contains: offer._items.reduce((contents, i) => {
if (!this.items.get(i._tpl)) {
return contents;
}
const existingPart = contents.find(cont => cont.item === i._tpl);
if (existingPart) {
existingPart.count += i.upd?.StackObjectsCount || 1
Expand Down

0 comments on commit 480a441

Please sign in to comment.