Skip to content

Commit

Permalink
Merge pull request #10125 from DestinyItemManager/is-vendor
Browse files Browse the repository at this point in the history
Add is:vendor search
  • Loading branch information
bhollis authored Nov 22, 2023
2 parents a84f6ba + 1c56e1c commit d625c83
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@
"UnlockAllFailed": "Failed to unlock items",
"UnlockAllSuccess": "Unlocked {{num}} items",
"Vendor": "Item is available from a specific vendor.",
"VendorItem": "Item is from a vendor, not in your inventory. Useful for excluding vendor items from Loadout Optimizer.",
"WeaponType": "Shows weapons based on their weapon type.",
"WeaponLevel": "Shows weapons based on their Weapon Level.",
"Wishlist": "Shows items that match your wish list.",
Expand Down
4 changes: 3 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
## Next

* Added `is:vendor` search that is useful for excluding vendor items from Loadout Optimizer (enter `-is:vendor` in the search box).

## 7.95.0 <span class="changelog-date">(2023-11-19)</span>

* Added an "exactperk:" search that matches a perk name exactly. No more mixing up "Frenzy" with "Feeding Frenzy".
* Added an `exactperk:` search that matches a perk name exactly. No more mixing up "Frenzy" with "Feeding Frenzy".
* Fixed a bug where in-game loadouts would be marked as matching a DIM loadout incorrectly.

## 7.94.1 <span class="changelog-date">(2023-11-13)</span>
Expand Down
1 change: 1 addition & 0 deletions src/app/search/__snapshots__/search-config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ exports[`buildSearchConfig generates a reasonable filter map: is filters 1`] = `
"uncommon",
"unlocked",
"vehicle",
"vendor",
"void",
"warlock",
"weapon",
Expand Down
6 changes: 6 additions & 0 deletions src/app/search/search-filters/simple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ const simpleFilters: FilterDefinition[] = [
description: tl('Filter.IsCrafted'),
filter: () => (item) => item.crafted,
},
{
keywords: ['vendor'],
destinyVersion: 2,
description: tl('Filter.VendorItem'),
filter: () => (item) => Boolean(item.vendor),
},
];

export default simpleFilters;
1 change: 1 addition & 0 deletions src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
"UnlockAllFailed": "Failed to unlock items",
"UnlockAllSuccess": "Unlocked {{num}} items",
"Vendor": "Item is available from a specific vendor.",
"VendorItem": "Item is from a vendor, not in your inventory. Useful for excluding vendor items from Loadout Optimizer.",
"Weapon": "Shows items that are weapons.",
"WeaponLevel": "Shows weapons based on their Weapon Level.",
"WeaponType": "Shows weapons based on their weapon type.",
Expand Down

0 comments on commit d625c83

Please sign in to comment.