mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-07-03 17:09:17 +00:00
@ -20,6 +20,10 @@ enum Rarity {
|
||||
|
||||
// Other
|
||||
LEGEND,
|
||||
|
||||
// V & Vmax
|
||||
RareV,
|
||||
RareVMAX,
|
||||
}
|
||||
|
||||
namespace Rarity {
|
||||
@ -77,6 +81,12 @@ namespace Rarity {
|
||||
// LEGEND
|
||||
case "LEGEND":
|
||||
return Rarity.LEGEND
|
||||
|
||||
case "V":
|
||||
return Rarity.RareV
|
||||
|
||||
case "VM":
|
||||
return Rarity.RareVMAX
|
||||
default:
|
||||
throw new Error(`Rarity not known (${str})`)
|
||||
}
|
||||
|
@ -21,6 +21,8 @@ enum Tag {
|
||||
TAGTEAM,
|
||||
TECHNICALMACHINE,
|
||||
TOOL,
|
||||
V,
|
||||
VMAX,
|
||||
}
|
||||
|
||||
const en = [
|
||||
@ -42,7 +44,9 @@ const en = [
|
||||
"Supporter",
|
||||
"Tag Team",
|
||||
"Technical Machine",
|
||||
"Tool"
|
||||
"Tool",
|
||||
"Pokémon V",
|
||||
"Pokémon VMAX"
|
||||
]
|
||||
|
||||
const fr = [
|
||||
@ -64,7 +68,9 @@ const fr = [
|
||||
"Supporter",
|
||||
"ESCOUADE",
|
||||
"Machine Technique",
|
||||
"Outil"
|
||||
"Outil",
|
||||
"Pokémon V",
|
||||
"Pokémon VMAX"
|
||||
]
|
||||
|
||||
namespace Tag {
|
||||
@ -235,6 +241,13 @@ namespace Tag {
|
||||
case "Dresseur [Outil Pokémon]":
|
||||
list.push(Tag.TOOL)
|
||||
break
|
||||
|
||||
case "Pokémon-V":
|
||||
list.push(Tag.V)
|
||||
break
|
||||
|
||||
case "Pokémon-VMAX":
|
||||
list.push(Tag.VMAX)
|
||||
case "null":
|
||||
break
|
||||
|
||||
|
Reference in New Issue
Block a user