Skip to content

Commit

Permalink
use CorpseLvl as itemLvl, fixes #1315
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Apr 7, 2024
1 parent d64b1d0 commit 5dc7746
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions renderer/src/web/price-check/trade/pathofexile-trade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ interface FetchResult {
properties?: Array<{
values: [[string, number]]
type:
78 | // Corpse Level (Filled Coffin)
30 | // Spawns a Level %0 Monster when Harvested
6 | // Quality
5 // Level
Expand All @@ -226,7 +227,7 @@ interface FetchResult {

export interface PricingResult {
id: string
itemLevel?: number
itemLevel?: string
stackSize?: number
corrupted?: boolean
quality?: string
Expand Down Expand Up @@ -576,7 +577,7 @@ export async function requestResults (
return data.map<PricingResult>(result => {
return {
id: result.id,
itemLevel: result.item.ilvl,
itemLevel: result.item.properties?.find(prop => prop.type === 78)?.values[0][0] ?? String(result.item.ilvl),
stackSize: result.item.stackSize,
corrupted: result.item.corrupted,
quality: result.item.properties?.find(prop => prop.type === 6)?.values[0][0],
Expand Down

0 comments on commit 5dc7746

Please sign in to comment.