mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-07-29 19:19:50 +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})`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user