mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: new mythic items
This commit is contained in:
parent
8fac5cd58b
commit
f156bddea5
3 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
isMythic(item) {
|
isMythic(item) {
|
||||||
return item && item.image.includes('t4')
|
return item && item.isMythic
|
||||||
},
|
},
|
||||||
itemLink(item) {
|
itemLink(item) {
|
||||||
if (!item) {
|
if (!item) {
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ export default abstract class MatchSerializer {
|
||||||
name: item.name,
|
name: item.name,
|
||||||
description: item.description,
|
description: item.description,
|
||||||
price: item.priceTotal,
|
price: item.priceTotal,
|
||||||
|
isMythic: item.description.includes('rarityMythic'),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return items
|
return items
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ export interface SerializedMatchItem {
|
||||||
image: string
|
image: string
|
||||||
name: string
|
name: string
|
||||||
price: number
|
price: number
|
||||||
|
isMythic: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SerializedMatchPerks {
|
export interface SerializedMatchPerks {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue