feat: Support for Ultimate rarity
This commit is contained in:
@@ -31,6 +31,7 @@ enum class Rarity(vararg altNames: String) {
|
|||||||
SUPREME,
|
SUPREME,
|
||||||
SPECIAL,
|
SPECIAL,
|
||||||
VERY_SPECIAL,
|
VERY_SPECIAL,
|
||||||
|
ULTIMATE,
|
||||||
UNKNOWN
|
UNKNOWN
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -64,6 +65,7 @@ enum class Rarity(vararg altNames: String) {
|
|||||||
Rarity.SPECIAL to Formatting.RED,
|
Rarity.SPECIAL to Formatting.RED,
|
||||||
Rarity.VERY_SPECIAL to Formatting.RED,
|
Rarity.VERY_SPECIAL to Formatting.RED,
|
||||||
Rarity.SUPREME to Formatting.DARK_RED,
|
Rarity.SUPREME to Formatting.DARK_RED,
|
||||||
|
Rarity.ULTIMATE to Formatting.DARK_RED,
|
||||||
)
|
)
|
||||||
val byName = entries.flatMap { en -> en.names.map { it to en } }.toMap()
|
val byName = entries.flatMap { en -> en.names.map { it to en } }.toMap()
|
||||||
val fromNeuRepo = entries.associateBy { it.neuRepoRarity }
|
val fromNeuRepo = entries.associateBy { it.neuRepoRarity }
|
||||||
|
|||||||
Reference in New Issue
Block a user