mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-28 15:45:58 +00:00
fix: ignore quality for EEE gems in trends
This commit is contained in:
@@ -8,7 +8,7 @@ const TradeOpts = {
|
||||
GemQualityRange: 0
|
||||
}
|
||||
|
||||
const EXACT_GEM_LEVEL = ['Empower Support', 'Enlighten Support', 'Enhance Support']
|
||||
export const SPECIAL_SUPPORT_GEM = ['Empower Support', 'Enlighten Support', 'Enhance Support']
|
||||
|
||||
interface TradeRequest { /* eslint-disable camelcase */
|
||||
query: {
|
||||
@@ -141,7 +141,7 @@ export async function requestTradeResultList (item: ParsedItem) {
|
||||
query.filters.misc_filters.filters.quality.min = item.quality
|
||||
}
|
||||
|
||||
if (EXACT_GEM_LEVEL.includes(item.name)) {
|
||||
if (SPECIAL_SUPPORT_GEM.includes(item.name)) {
|
||||
query.filters.misc_filters.filters.gem_level.min = item.gemLevel
|
||||
query.filters.misc_filters.filters.gem_level.max = item.gemLevel
|
||||
} else if (item.gemLevel! >= TradeOpts.GemLevel) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { ParsedItem, ItemRarity, WellKnownType } from '../Parser'
|
||||
import { SPECIAL_SUPPORT_GEM } from '../pathofexile-trade'
|
||||
|
||||
const LATEST_MAP_VARIANT = 'Metamorph'
|
||||
|
||||
@@ -22,7 +23,7 @@ function getGemDetailsId (item: ParsedItem) {
|
||||
if (item.gemLevel! > 1) {
|
||||
id += `-${item.gemLevel}`
|
||||
}
|
||||
if (item.quality! > 0) {
|
||||
if (item.quality! > 0 && !SPECIAL_SUPPORT_GEM.includes(item.name)) {
|
||||
id += `-${item.quality}`
|
||||
}
|
||||
if (item.isCorrupted) {
|
||||
|
||||
Reference in New Issue
Block a user