mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-05-04 00:11:22 +00:00
e19356e97b
* Price checking does not work when using a gamepad(Ctrl+D) #452 Uses parts from #454 to fix the issue. Co-authored-by: lawrsp <7957003+lawrsp@users.noreply.github.com> * Fix tests :( * Fix magic rarity item name parse in "cmn-Hant" language (#460) * Fix magic rarity item name parse in "cmn-Hant" language * Add by translated when ref is null --------- Co-authored-by: kvan7 <kvan.valve@gmail.com> * chore: yarn to npm and add missing step (#461) * fix: update game config path for linux to poe2 * fix tests * fix: MacOS crash on startup (#428) * fix: MacOS crash on startup * update for windows/linux * move main app startup into function Mac calls that in async, other platforms proceed in sync. * [PoE2] - Relics broken again #444 * test prettier and add npm script * add format/lint support to main * Fix defineProps macro * Run speed v0.8.0 - Russian. #447 * fix negative gold * Merge branch 'Kvan7:master' into master * fix: app-ready fixing before we're ready * Merge branch 'dev' into pr/larssn/428 * should work? * Merge commit 'ab1c8bfa3a31b06da9cf18db0273f6a92e407bc5' into pr/larssn/428 * fix being lazy on the merge * fix: add executable bit to compilation script (#465) * Item Images (#472) * image data stuff * ignore lookup file * update testing * sort items * change sort ot be by refname * more code * working pulling * Fixes #456 Create script to request item's images from trade site #456 * Fixes #457 Update ImageFix to use new saved images before poe1 ones #457 * add images to items * Add Spear as item category * Add Flail as category * Add "goodness" from upstream * Fix #474 Tier # missing from some defense stats #474 * minor oops * remove error for waystones * Add a bunch of images to the docs * Extra widgets docs * Update chat commands links docs * add stash search docs * Item info docs page * more docs * Update bug-report.yml * Version bump * extra version bump --------- Co-authored-by: lawrsp <7957003+lawrsp@users.noreply.github.com> Co-authored-by: Seth Falco <seth@falco.fun> Co-authored-by: Amir Zarrinkafsh <nightah@me.com> Co-authored-by: Lars <890725+larssn@users.noreply.github.com>
139 lines
3.0 KiB
TypeScript
139 lines
3.0 KiB
TypeScript
export enum ItemCategory {
|
|
Map = "Map",
|
|
CapturedBeast = "Captured Beast",
|
|
MetamorphSample = "Metamorph Sample",
|
|
Helmet = "Helmet",
|
|
BodyArmour = "Body Armour",
|
|
Gloves = "Gloves",
|
|
Boots = "Boots",
|
|
Shield = "Shield",
|
|
Amulet = "Amulet",
|
|
Belt = "Belt",
|
|
Ring = "Ring",
|
|
Flask = "Flask",
|
|
AbyssJewel = "Abyss Jewel",
|
|
Jewel = "Jewel",
|
|
Quiver = "Quiver",
|
|
Claw = "Claw",
|
|
Bow = "Bow",
|
|
Sceptre = "Sceptre",
|
|
Wand = "Wand",
|
|
FishingRod = "Fishing Rod",
|
|
Staff = "Staff",
|
|
Warstaff = "Warstaff",
|
|
Dagger = "Dagger",
|
|
RuneDagger = "Rune Dagger",
|
|
OneHandedAxe = "One-Handed Axe",
|
|
TwoHandedAxe = "Two-Handed Axe",
|
|
OneHandedMace = "One-Handed Mace",
|
|
TwoHandedMace = "Two-Handed Mace",
|
|
OneHandedSword = "One-Handed Sword",
|
|
TwoHandedSword = "Two-Handed Sword",
|
|
ClusterJewel = "Cluster Jewel",
|
|
HeistBlueprint = "Heist Blueprint",
|
|
HeistContract = "Heist Contract",
|
|
HeistTool = "Heist Tool",
|
|
HeistBrooch = "Heist Brooch",
|
|
HeistGear = "Heist Gear",
|
|
HeistCloak = "Heist Cloak",
|
|
Trinket = "Trinket",
|
|
Invitation = "Invitation",
|
|
Gem = "Gem",
|
|
Currency = "Currency",
|
|
DivinationCard = "Divination Card",
|
|
Voidstone = "Voidstone",
|
|
Sentinel = "Sentinel",
|
|
MemoryLine = "Memory Line",
|
|
SanctumRelic = "Sanctum Relic",
|
|
Tincture = "Tincture",
|
|
Charm = "Charm",
|
|
Crossbow = "Crossbow",
|
|
SkillGem = "Skill Gem",
|
|
SupportGem = "Support Gem",
|
|
MetaGem = "Meta Gem",
|
|
Focus = "Focus",
|
|
Spear = "Spear",
|
|
Flail = "Flail",
|
|
}
|
|
|
|
export interface StatMatcher {
|
|
string: string;
|
|
advanced?: string;
|
|
negate?: true;
|
|
value?: number;
|
|
oils?: string; // Amulet anointment
|
|
}
|
|
|
|
export enum StatBetter {
|
|
NegativeRoll = -1,
|
|
PositiveRoll = 1,
|
|
NotComparable = 0,
|
|
}
|
|
|
|
export interface Stat {
|
|
ref: string;
|
|
dp?: true;
|
|
matchers: StatMatcher[];
|
|
better: StatBetter;
|
|
fromAreaMods?: true;
|
|
fromUberAreaMods?: true;
|
|
fromHeistAreaMods?: true;
|
|
anointments?: Array<{ roll: number; oils: string }>; // Ring anointments
|
|
trade: {
|
|
inverted?: true;
|
|
option?: true;
|
|
ids: {
|
|
[type: string]: string[];
|
|
};
|
|
};
|
|
}
|
|
|
|
export interface DropEntry {
|
|
query: string[];
|
|
items: string[];
|
|
}
|
|
|
|
export interface BaseType {
|
|
name: string;
|
|
refName: string;
|
|
namespace: "DIVINATION_CARD" | "CAPTURED_BEAST" | "UNIQUE" | "ITEM" | "GEM";
|
|
icon: string;
|
|
w?: number;
|
|
h?: number;
|
|
tradeTag?: string;
|
|
tradeDisc?: string;
|
|
disc?: {
|
|
propAR?: true;
|
|
propEV?: true;
|
|
propES?: true;
|
|
hasImplicit?: { ref: Stat["ref"] };
|
|
hasExplicit?: { ref: Stat["ref"] };
|
|
sectionText?: string;
|
|
mapTier?: "W" | "Y" | "R";
|
|
};
|
|
// extra info
|
|
craftable?: {
|
|
category: string;
|
|
corrupted?: true;
|
|
uniqueOnly?: true;
|
|
};
|
|
unique?: {
|
|
base: BaseType["refName"];
|
|
fixedStats?: Array<Stat["ref"]>;
|
|
};
|
|
map?: {
|
|
screenshot?: string;
|
|
};
|
|
gem?: {
|
|
vaal?: true;
|
|
awakened?: true;
|
|
transfigured?: true;
|
|
normalVariant?: BaseType["refName"];
|
|
};
|
|
armour?: {
|
|
ar?: [min: number, max: number];
|
|
ev?: [min: number, max: number];
|
|
es?: [min: number, max: number];
|
|
};
|
|
}
|