Skip to content

Commit

Permalink
fix item stat socketed
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav committed Mar 7, 2024
1 parent 9b22f74 commit 6bde86a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/d2/attribute_enhancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ export function enhanceItem(item: types.IItem, constants: types.IConstantData, l
item.max_durability = details.durability - Math.ceil(details.durability / 2) + 1;
}
}
// Enforce coherence between total_nr_of_sockets & socketed
if (item.total_nr_of_sockets > 0) {
item.socketed = 1;
} else {
item.socketed = 0;
}
if (item.multiple_pictures) {
item.inv_file = details.ig[item.picture_id];
}
Expand Down

0 comments on commit 6bde86a

Please sign in to comment.