Skip to content

Commit 754b86e

Browse files
committed
enable psuedo on some uniques
1 parent 6a503b5 commit 754b86e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

renderer/src/parser/Parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ export function parseAffixStrings(clipboard: string): string {
15921592
return part2 || part1;
15931593
});
15941594
}
1595-
function getMaxSockets(item: ParsedItem) {
1595+
export function getMaxSockets(item: ParsedItem) {
15961596
if (item.info.refName === "Darkness Enthroned") {
15971597
return 2;
15981598
}

renderer/src/web/price-check/filters/create-stat-filters.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { filterItemProp, filterBasePercentile } from "./pseudo/item-property";
2525
import { decodeOils, applyAnointmentRules } from "./pseudo/anointments";
2626
import { StatBetter, CLIENT_STRINGS } from "@/assets/data";
2727
import { explicitModifierCount, maxUsefulItemLevel } from "./common";
28+
import { getMaxSockets } from "@/parser/Parser";
2829

2930
export interface FiltersCreationContext {
3031
readonly item: ParsedItem;
@@ -187,7 +188,8 @@ export function initUiModFilters(
187188

188189
if (item.info.refName !== "Split Personality") {
189190
filterItemProp(ctx);
190-
if (item.rarity !== ItemRarity.Unique) {
191+
// TODO: see if there are other options here, don't want to include trade site uniques with random runes
192+
if (item.rarity !== ItemRarity.Unique || !getMaxSockets(item)) {
191193
filterPseudo(ctx);
192194
}
193195
if (item.info.refName === "Emperor's Vigilance") {

0 commit comments

Comments
 (0)