mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-14 03:55:42 +00:00
@@ -6,6 +6,7 @@ import { BaseType, ITEM_BY_REF } from "@/assets/data";
|
||||
import { CATEGORY_TO_TRADE_ID } from "../trade/pathofexile-trade";
|
||||
import { PriceCheckWidget } from "@/web/overlay/widgets";
|
||||
import { isArmourOrWeaponOrCaster } from "@/parser/Parser";
|
||||
import { ARMOUR, WEAPON } from "@/parser/meta";
|
||||
|
||||
export const SPECIAL_SUPPORT_GEM = [
|
||||
"Empower Support",
|
||||
@@ -13,6 +14,13 @@ export const SPECIAL_SUPPORT_GEM = [
|
||||
"Enhance Support",
|
||||
];
|
||||
|
||||
const CATEGORIES_WITH_USEFUL_QUALITY = new Set([
|
||||
ItemCategory.Flask,
|
||||
ItemCategory.Tincture,
|
||||
...WEAPON,
|
||||
...ARMOUR,
|
||||
]);
|
||||
|
||||
interface CreateOptions {
|
||||
league: string;
|
||||
currency: string | undefined;
|
||||
@@ -209,10 +217,7 @@ export function createFilters(
|
||||
}
|
||||
|
||||
if (item.quality && item.quality >= 20) {
|
||||
if (
|
||||
item.category === ItemCategory.Flask ||
|
||||
item.category === ItemCategory.Tincture
|
||||
) {
|
||||
if (item.category && CATEGORIES_WITH_USEFUL_QUALITY.has(item.category)) {
|
||||
filters.quality = {
|
||||
value: item.quality,
|
||||
disabled: item.quality <= 20,
|
||||
|
||||
@@ -93,19 +93,23 @@ export function createPresets(
|
||||
item.isMirrored;
|
||||
|
||||
const hasCraftingValue =
|
||||
// Base useful crafting item (synth and influence not in poe2 yet though)
|
||||
item.isSynthesised ||
|
||||
item.isFractured ||
|
||||
item.influences.length ||
|
||||
// Clusters (deprecated)
|
||||
item.category === ItemCategory.ClusterJewel ||
|
||||
// Jewels
|
||||
(item.category === ItemCategory.Jewel &&
|
||||
item.rarity === ItemRarity.Magic) ||
|
||||
// High ilvl, non jewel
|
||||
(item.category !== ItemCategory.Jewel &&
|
||||
item.category !== ItemCategory.AbyssJewel &&
|
||||
item.itemLevel! >= 82) ||
|
||||
(!item.isCorrupted &&
|
||||
item.rarity === ItemRarity.Magic &&
|
||||
item.itemLevel! >= 81 &&
|
||||
itemHasPerfectPlusLevels(item));
|
||||
(item.itemLevel! >= 81 &&
|
||||
(item.category === ItemCategory.Wand ||
|
||||
item.category === ItemCategory.Spear ||
|
||||
item.category === ItemCategory.Staff));
|
||||
|
||||
// Apply runes if we should
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user