mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-21 12:15:47 +00:00
remove Harvest Seed
This commit is contained in:
@@ -42,8 +42,6 @@ export default {
|
||||
VEILED_PREFIX: 'Veiled Prefix',
|
||||
VEILED_SUFFIX: 'Veiled Suffix',
|
||||
FLASK_CHARGES: /^Currently has \d+ Charges$/,
|
||||
SEED_MONSTER_LEVEL: /^Spawns a Level (\d+) Monster when Harvested$/,
|
||||
SEED_HELP: 'Right-click this item then left-click the ground to plant it in the Sacred Grove.',
|
||||
METAMORPH_HELP: "Combine this with four other different samples in Tane's Laboratory.",
|
||||
BEAST_HELP: 'Right-click to add this to your bestiary.',
|
||||
METAMORPH_BRAIN: /^.* Brain$/,
|
||||
|
||||
@@ -42,8 +42,6 @@ export default {
|
||||
VEILED_PREFIX: 'Завуалированный префикс',
|
||||
VEILED_SUFFIX: 'Завуалированный суффикс',
|
||||
FLASK_CHARGES: /^Содержит зарядов: \d+$/,
|
||||
SEED_MONSTER_LEVEL: /^При сборе появляется монстр (\d+) уровня$/,
|
||||
SEED_HELP: 'Щелкните ПКМ, затем ЛКМ по земле в Священной роще, чтобы посадить растение.',
|
||||
METAMORPH_HELP: 'Объедините эту часть с четырьмя другими в Лаборатории Танэ.',
|
||||
BEAST_HELP: 'Нажмите ПКМ, чтобы добавить это в ваш Бестиарий.',
|
||||
METAMORPH_BRAIN: /^Мозг: .*$/,
|
||||
|
||||
@@ -126,8 +126,6 @@ export interface TranslationDict {
|
||||
VEILED_PREFIX: string
|
||||
VEILED_SUFFIX: string
|
||||
FLASK_CHARGES: RegExp
|
||||
SEED_MONSTER_LEVEL: RegExp
|
||||
SEED_HELP: string
|
||||
METAMORPH_HELP: string
|
||||
BEAST_HELP: string
|
||||
METAMORPH_BRAIN: RegExp
|
||||
|
||||
@@ -438,25 +438,11 @@ function parseStackSize (section: string[], item: ParsedItem) {
|
||||
const [value, max] = section[0].substr(_$.STACK_SIZE.length).replace(/[^\d/]/g, '').split('/').map(Number)
|
||||
item.stackSize = { value, max }
|
||||
|
||||
if (item.category === ItemCategory.Seed) {
|
||||
parseSeedLevelNested(section, item)
|
||||
}
|
||||
|
||||
return SECTION_PARSED
|
||||
}
|
||||
return SECTION_SKIPPED
|
||||
}
|
||||
|
||||
function parseSeedLevelNested (section: string[], item: ParsedItem) {
|
||||
for (const line of section) {
|
||||
const match = line.match(_$.SEED_MONSTER_LEVEL)
|
||||
if (match != null) {
|
||||
item.itemLevel = Number(match[1])
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function parseSockets (section: string[], item: ParsedItem) {
|
||||
if (section[0].startsWith(_$.SOCKETS)) {
|
||||
let sockets = section[0].substr(_$.SOCKETS.length).trimEnd()
|
||||
@@ -664,9 +650,6 @@ function parseCategoryByHelpText (section: string[], item: ParsedItem) {
|
||||
} else if (section[0] === _$.METAMORPH_HELP) {
|
||||
item.category = ItemCategory.MetamorphSample
|
||||
return SECTION_PARSED
|
||||
} else if (section[0].startsWith(_$.SEED_HELP)) {
|
||||
item.category = ItemCategory.Seed
|
||||
return SECTION_PARSED
|
||||
}
|
||||
|
||||
return SECTION_SKIPPED
|
||||
|
||||
@@ -2,7 +2,6 @@ export enum ItemCategory {
|
||||
Map = 'Map',
|
||||
CapturedBeast = 'Captured Beast',
|
||||
MetamorphSample = 'Metamorph Sample',
|
||||
Seed = 'Seed',
|
||||
Helmet = 'Helmet',
|
||||
BodyArmour = 'Body Armour',
|
||||
Gloves = 'Gloves',
|
||||
|
||||
@@ -50,10 +50,7 @@ export function createFilters (
|
||||
}
|
||||
return filters
|
||||
}
|
||||
if (
|
||||
item.category === ItemCategory.MetamorphSample ||
|
||||
item.category === ItemCategory.Seed
|
||||
) {
|
||||
if (item.category === ItemCategory.MetamorphSample) {
|
||||
filters.searchExact = {
|
||||
baseType: item.info.name
|
||||
}
|
||||
|
||||
@@ -550,9 +550,7 @@ export async function requestResults (
|
||||
return data.result.map<PricingResult>(result => {
|
||||
return {
|
||||
id: result.id,
|
||||
itemLevel:
|
||||
result.item.ilvl ||
|
||||
Number(result.item.properties?.find(prop => prop.type === 30)?.values[0][0]),
|
||||
itemLevel: result.item.ilvl,
|
||||
stackSize: result.item.stackSize,
|
||||
corrupted: result.item.corrupted,
|
||||
quality: result.item.properties?.find(prop => prop.type === 6)?.values[0][0],
|
||||
|
||||
Reference in New Issue
Block a user