summaryrefslogtreecommitdiff
path: root/src/maps
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-06-12 21:57:04 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 17:09:17 +0100
commit52fe2972daf40c462f9b4c9dbc02b87b86e8c67a (patch)
tree4ce628bcddb74793681e9f461c17ca20e0d0be50 /src/maps
parentf221ce4c0d20a4980da85e8e050b380d77498fe3 (diff)
downloadbrokentalents-52fe2972daf40c462f9b4c9dbc02b87b86e8c67a.tar.gz
brokentalents-52fe2972daf40c462f9b4c9dbc02b87b86e8c67a.zip
Add 'Balance' Scatter Plot
Diffstat (limited to 'src/maps')
-rw-r--r--src/maps/maps.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/maps/maps.js b/src/maps/maps.js
index 14eead1..08ce779 100644
--- a/src/maps/maps.js
+++ b/src/maps/maps.js
@@ -2,6 +2,8 @@ const rarities = require('./rarities.json');
const names = require('./names.json');
const modes = require('./modes.json');
+const RARITIES = ['None', 'Rare', 'Epic', 'Legendary'];
+
function getTalentName(talent) {
if (talent == 'NoTalent') {
return 'No Talent';
@@ -53,10 +55,6 @@ function getScaledLevel(entry) {
}
};
-function getTalentRarityIndex(talent) {
- return ['None', 'Rare', 'Epic', 'Legendary'];
-}
-
function getHero(actor) {
return actor.substring(1, actor.length - 1);
}
@@ -74,9 +72,9 @@ function playersPerMatch(mode) {
}
module.exports = {
+ RARITIES,
getTalentName,
getTalentRarity,
- getTalentRarityIndex,
getScaledLevel,
getHero,
getMode,