Skip to content

Commit

Permalink
Merge pull request #10348 from DestinyItemManager/is-shiny
Browse files Browse the repository at this point in the history
is:shiny for brave weapons
  • Loading branch information
nev-r authored Apr 20, 2024
2 parents 7e8c224 + 87d86cc commit 6c153eb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@
"RarityTier": "Shows items based on their rarity tier.",
"Reforgeable": "Shows items that can be reforged at the Gunsmith.",
"Release": "Available from release <i>{{release}}</i>",
"Shiny": "Shows BRAVE weapons with a limited-edition ornament.",
"Weapon": "Shows items that are weapons.",
"Armor": "Shows items that are armor.",
"Cosmetic": "Shows items that are flair or cosmetic.",
Expand Down
3 changes: 3 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Next

* Fixed max stat constraints sometimes being not shown in Loadout parameters.
* `is:shiny` filter to find limited-edition BRAVE weapons.

## 8.16.0 <span class="changelog-date">(2024-04-14)</span>

* Loadouts with only armor mods, or only fashion (shaders & ornaments), now display a symbol in the equip dropdown, and can be filtered from among other loadouts.
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 @@ -104,6 +104,7 @@ exports[`buildSearchConfig generates a reasonable filter map: is filters 1`] = `
"shaded",
"shaped",
"shapeddupe",
"shiny",
"ships",
"shotgun",
"sidearm",
Expand Down
12 changes: 12 additions & 0 deletions src/app/search/search-filters/sockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ const socketFilters: FilterDefinition[] = [
(item) =>
matchesCuratedRoll(d2Definitions!, item),
},
{
keywords: 'shiny',
description: tl('Filter.Shiny'),
destinyVersion: 2,
filter: () => (item) =>
item.sockets?.allSockets.some(
(s) =>
s.plugOptions.some(
(s) => s.plugDef.plug.plugCategoryIdentifier === 'holofoil_skins_shared',
), //
),
},
{
keywords: 'extraperk',
description: tl('Filter.ExtraPerk'),
Expand Down
1 change: 1 addition & 0 deletions src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@
"RetiredPerk": "Shows weapons with perks that no longer obtainable.",
"SearchPrompt": "Search available filter commands",
"Season": "Shows items from which season of Destiny 2 they appeared in.",
"Shiny": "Shows BRAVE weapons with a limited-edition ornament.",
"StackFull": "Show items which are at-capacity for their stack (Enhancement Cores, Strange Coins, Gunsmith Materials etc)",
"StackLevel": "Shows items based on the quantity of items in its stack.",
"Stackable": "Shows items that can stack (ammo synths, strange coin, etc)",
Expand Down

0 comments on commit 6c153eb

Please sign in to comment.