Skip to content

Commit

Permalink
small tweaks to searchInRange, closes #1345
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Apr 25, 2024
1 parent a53ccdf commit 73d606e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions renderer/src/web/price-check/filters/create-stat-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ export function initUiModFilters (
const ctx: FiltersCreationContext = {
item,
filters: [],
searchInRange: (item.rarity === ItemRarity.Normal || item.rarity === ItemRarity.Magic)
? 100 // only care about Tier
: opts.searchStatRange,
searchInRange: (item.rarity === ItemRarity.Normal) ? 100 : opts.searchStatRange,
statsByType: item.statsByType.map(calc => {
if (calc.type === ModifierType.Fractured && calc.stat.trade.ids[ModifierType.Explicit]) {
return { ...calc, type: ModifierType.Explicit }
Expand Down Expand Up @@ -247,6 +245,7 @@ export function calculatedStatToFilter (
percent = 0
} else if (
item.rarity === ItemRarity.Unique ||
(item.rarity === ItemRarity.Magic && item.category === ItemCategory.Jewel) ||
calc.sources.some(({ modifier }) => modifier.info.tier === 1 && modifier.info.type === ModifierType.Fractured)
) {
const perfectRoll = (
Expand Down

0 comments on commit 73d606e

Please sign in to comment.