From a861e814f1e7f9477e7383654a1a35d52d675f07 Mon Sep 17 00:00:00 2001 From: Lyuha Date: Thu, 27 Nov 2025 00:35:05 +0900 Subject: [PATCH] Add a quick filter by frame+damage type in weapon compare --- src/app/compare/compare-buttons.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/app/compare/compare-buttons.tsx b/src/app/compare/compare-buttons.tsx index c69479e178..6fabf9eb71 100644 --- a/src/app/compare/compare-buttons.tsx +++ b/src/app/compare/compare-buttons.tsx @@ -280,6 +280,24 @@ export function findSimilarWeapons(exampleItem: DimItem): CompareButton[] { query: `is:${getItemDamageShortName(exampleItem)}`, }, + // same waepon frame and also matching element + { + buttonLabel: [ + intrinsicName, + , + , + ], + query: `(is:${getItemDamageShortName(exampleItem)} ${ + exampleItem.destinyVersion === 2 && intrinsic + ? `exactperk:${quoteFilterString(intrinsic.displayProperties.name)}` + : `stat:rpm:${getRpm(exampleItem)}` + })`, + }, + // exact same weapon, judging by name. might span multiple expansions. { buttonLabel: [adeptStripped],