diff --git a/public/data/en/client_strings.js b/public/data/en/client_strings.js index 0343e692..dc082d65 100644 --- a/public/data/en/client_strings.js +++ b/public/data/en/client_strings.js @@ -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$/, diff --git a/public/data/ru/client_strings.js b/public/data/ru/client_strings.js index 3ef8a4c1..1293dc5e 100644 --- a/public/data/ru/client_strings.js +++ b/public/data/ru/client_strings.js @@ -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: /^Мозг: .*$/, diff --git a/src/assets/data/interfaces.ts b/src/assets/data/interfaces.ts index 72279b37..5982fa97 100644 --- a/src/assets/data/interfaces.ts +++ b/src/assets/data/interfaces.ts @@ -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 diff --git a/src/parser/Parser.ts b/src/parser/Parser.ts index d22a5a78..88b1ba58 100644 --- a/src/parser/Parser.ts +++ b/src/parser/Parser.ts @@ -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 diff --git a/src/parser/meta.ts b/src/parser/meta.ts index cea068f2..83b623e6 100644 --- a/src/parser/meta.ts +++ b/src/parser/meta.ts @@ -2,7 +2,6 @@ export enum ItemCategory { Map = 'Map', CapturedBeast = 'Captured Beast', MetamorphSample = 'Metamorph Sample', - Seed = 'Seed', Helmet = 'Helmet', BodyArmour = 'Body Armour', Gloves = 'Gloves', diff --git a/src/web/price-check/filters/create-item-filters.ts b/src/web/price-check/filters/create-item-filters.ts index 8bf2c9b3..d93f9eeb 100644 --- a/src/web/price-check/filters/create-item-filters.ts +++ b/src/web/price-check/filters/create-item-filters.ts @@ -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 } diff --git a/src/web/price-check/trade/pathofexile-trade.ts b/src/web/price-check/trade/pathofexile-trade.ts index e8befb16..2c8236fc 100644 --- a/src/web/price-check/trade/pathofexile-trade.ts +++ b/src/web/price-check/trade/pathofexile-trade.ts @@ -550,9 +550,7 @@ export async function requestResults ( return data.result.map(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],