diff options
Diffstat (limited to 'src/maps/maps.js')
| -rw-r--r-- | src/maps/maps.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/maps/maps.js b/src/maps/maps.js index 7b48ce0..9237c4b 100644 --- a/src/maps/maps.js +++ b/src/maps/maps.js @@ -45,6 +45,10 @@ function getTalentRarity(talent) { } } +function getTalentRarityIndex(talent) { + return RARITIES.indexOf(getTalentRarity(talent)); +} + function getMaxLevel(entry) { switch (getTalentRarity(entry.Talent)) { case 'unknown': @@ -94,6 +98,7 @@ module.exports = { RARITIES, getTalentName, getTalentRarity, + getTalentRarityIndex, getMaxLevel, getScaledLevel, getHero, |
