diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-07-13 12:30:25 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 17:09:26 +0100 |
| commit | ef360476df3f81f88ea85bc31cfc9ff9ab9a36c9 (patch) | |
| tree | 6c6c81842b979dea82330db27f638064a991ec9d /src/maps | |
| parent | 9383630aefcbb411d6ebef54821e0e4e5d1e7d59 (diff) | |
| download | brokentalents-ef360476df3f81f88ea85bc31cfc9ff9ab9a36c9.tar.gz brokentalents-ef360476df3f81f88ea85bc31cfc9ff9ab9a36c9.zip | |
HeroTalentTable: Sort by rarity
Diffstat (limited to 'src/maps')
| -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, |
