Skip to content

Commit

Permalink
πŸ› fix unable to create buy order for skins
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed May 1, 2022
1 parent 85597a4 commit 9397ca5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1116,15 +1116,14 @@ class ListingManager {
if (typeof item.paintkit === 'number') {
formatItem['attributes'].push({
defindex: 834,
float_value: item.paintkit
value: item.paintkit
});
}

if (item.wear) {
const wearValue = item.wear - 1;
formatItem['attributes'].push({
defindex: 749,
float_value: wearValue === 0 ? wearValue : wearValue / 5 // 0, 0.2, 0.4, 0.6, 0.8, 1
defindex: 725,
float_value: item.wear / 5 // 0.2, 0.4, 0.6, 0.8, 1
});
}

Expand Down

0 comments on commit 9397ca5

Please sign in to comment.