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