From 754b86eedd681d08acb9c964d75977f1355a215e Mon Sep 17 00:00:00 2001 From: kvan7 Date: Sun, 14 Sep 2025 21:27:55 -0500 Subject: [PATCH] enable psuedo on some uniques --- renderer/src/parser/Parser.ts | 2 +- renderer/src/web/price-check/filters/create-stat-filters.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/renderer/src/parser/Parser.ts b/renderer/src/parser/Parser.ts index d5609864..75d4d095 100644 --- a/renderer/src/parser/Parser.ts +++ b/renderer/src/parser/Parser.ts @@ -1592,7 +1592,7 @@ export function parseAffixStrings(clipboard: string): string { return part2 || part1; }); } -function getMaxSockets(item: ParsedItem) { +export function getMaxSockets(item: ParsedItem) { if (item.info.refName === "Darkness Enthroned") { return 2; } diff --git a/renderer/src/web/price-check/filters/create-stat-filters.ts b/renderer/src/web/price-check/filters/create-stat-filters.ts index 6b586e12..428a759c 100644 --- a/renderer/src/web/price-check/filters/create-stat-filters.ts +++ b/renderer/src/web/price-check/filters/create-stat-filters.ts @@ -25,6 +25,7 @@ import { filterItemProp, filterBasePercentile } from "./pseudo/item-property"; import { decodeOils, applyAnointmentRules } from "./pseudo/anointments"; import { StatBetter, CLIENT_STRINGS } from "@/assets/data"; import { explicitModifierCount, maxUsefulItemLevel } from "./common"; +import { getMaxSockets } from "@/parser/Parser"; export interface FiltersCreationContext { readonly item: ParsedItem; @@ -187,7 +188,8 @@ export function initUiModFilters( if (item.info.refName !== "Split Personality") { filterItemProp(ctx); - if (item.rarity !== ItemRarity.Unique) { + // TODO: see if there are other options here, don't want to include trade site uniques with random runes + if (item.rarity !== ItemRarity.Unique || !getMaxSockets(item)) { filterPseudo(ctx); } if (item.info.refName === "Emperor's Vigilance") {