Skip to content

Commit

Permalink
Merge pull request #9874 from DestinyItemManager/restore-dupelower
Browse files Browse the repository at this point in the history
Restore dupelower
  • Loading branch information
nev-r authored Sep 15, 2023
2 parents 5988ca8 + 6464d87 commit 461d7ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"CustomStatLower": "Shows armor whose stats are strictly lower than another of the same type of armor, only taking into account stats in that class' custom stat total list.",
"Stats": "Shows items based on a specific stat value. $t(Filter.StatsExtras)",
"StatsBase": "Filters armor based on its base stat value, not including attached mods or masterworking. $t(Filter.StatsExtras)",
"StatsExtras": "Supports stat addition by connecting multiple stat names with the + or & symbol. There are also special keywords highest, secondhighest, thirdhighest, etc. which match stats based on their rank within an item's stats.",
"StatsExtras": "Supports stat addition by connecting multiple stat names with the + or & symbol. There are also special keywords highest, secondhighest, thirdhighest, etc. which match stats based on their rank within an item's stats. Each custom stats also has its own search term, shown in the Custom Stats settings.",
"StatsLoadout": "Finds a set of items to equip for the maximum total value of a specific stat.",
"StatsMax": "Finds armor with the highest number for a specific stat. Includes all items with the highest stat.",
"Tags": {
Expand Down
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Next

* Restored `is:dupelower` to prioritize power when choosing lower dupes.

## 7.85.0 <span class="changelog-date">(2023-09-10)</span>

* Adding a subclass to a Loadout or selecting a subclass in Loadout Optimizer will now copy all currently equipped Aspects and Fragments too.
Expand Down
4 changes: 2 additions & 2 deletions src/app/search/search-filters/dupes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ const sortDupes = (
// The comparator for sorting dupes - the first item will be the "best" and all others are "dupelower".
const dupeComparator = reverseComparator(
chainComparator<DimItem>(
// primary stat
compareBy((item) => item.power),
compareBy((item) => {
const tag = getTag(item);
return Boolean(tag && notableTags.includes(tag));
}),
compareBy((item) => item.masterwork),
compareBy((item) => item.locked),
// primary stat
compareBy((item) => item.power),
compareBy((i) => i.id) // tiebreak by ID
)
);
Expand Down
2 changes: 1 addition & 1 deletion src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
"StatLower": "Shows armor whose stats are strictly lower than another of the same type of armor.",
"Stats": "Shows items based on a specific stat value. $t(Filter.StatsExtras)",
"StatsBase": "Filters armor based on its base stat value, not including attached mods or masterworking. $t(Filter.StatsExtras)",
"StatsExtras": "Supports stat addition by connecting multiple stat names with the + or & symbol. There are also special keywords highest, secondhighest, thirdhighest, etc. which match stats based on their rank within an item's stats.",
"StatsExtras": "Supports stat addition by connecting multiple stat names with the + or & symbol. There are also special keywords highest, secondhighest, thirdhighest, etc. which match stats based on their rank within an item's stats. Each custom stats also has its own search term, shown in the Custom Stats settings.",
"StatsLoadout": "Finds a set of items to equip for the maximum total value of a specific stat.",
"StatsMax": "Finds armor with the highest number for a specific stat. Includes all items with the highest stat.",
"Tags": {
Expand Down

0 comments on commit 461d7ba

Please sign in to comment.