Skip to content

Commit

Permalink
Merge pull request #10603 from FlaminSarge/thereforeiam
Browse files Browse the repository at this point in the history
Show Intrinsic for randomized-intrinsic weapons in Item Feed (Ergo Sum, crafted intrinsics)
  • Loading branch information
bhollis committed Jun 27, 2024
2 parents fb72d67 + cfe0afe commit 0a5dfaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/item-feed/Highlights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { DimPlugTooltip } from 'app/item-popup/PlugTooltip';
import {
getExtraIntrinsicPerkSockets,
getWeaponArchetype,
socketContainsIntrinsicPlug,
socketContainsPlugWithCategory,
} from 'app/utils/socket-utils';
import clsx from 'clsx';
Expand All @@ -21,7 +22,10 @@ export default function Highlights({ item }: { item: DimItem }) {
if (item.bucket.sort === 'Weapons' && item.sockets) {
// Don't ask me why Traits are called "Frames" but it does work.
const perkSockets = item.sockets.allSockets.filter(
(s) => s.isPerk && socketContainsPlugWithCategory(s, PlugCategoryHashes.Frames),
(s) =>
s.isPerk &&
(socketContainsPlugWithCategory(s, PlugCategoryHashes.Frames) ||
(s.hasRandomizedPlugItems && socketContainsIntrinsicPlug(s))),
);
const archetype = !item.isExotic && getWeaponArchetype(item)?.displayProperties.name;

Expand Down

0 comments on commit 0a5dfaf

Please sign in to comment.