summaryrefslogtreecommitdiff
path: root/src/maps
diff options
context:
space:
mode:
Diffstat (limited to 'src/maps')
-rw-r--r--src/maps/maps.js11
-rw-r--r--src/maps/modes.json8
2 files changed, 19 insertions, 0 deletions
diff --git a/src/maps/maps.js b/src/maps/maps.js
index 01c89ad..dbb7056 100644
--- a/src/maps/maps.js
+++ b/src/maps/maps.js
@@ -1,5 +1,6 @@
const rarities = require('./rarities.json');
const names = require('./names.json');
+const modes = require('./modes.json');
function getTalentName(talent) {
if (talent == 'NoTalent') {
@@ -42,12 +43,22 @@ function getTalentRarity(talent) {
}
}
+function getTalentRarityIndex(talent) {
+ return ['No Talent', 'Rare', 'Epic', 'Legendary'];
+}
+
function getHero(actor) {
return actor.substring(1, actor.length - 1);
}
+function getMode(mode) {
+ return modes[mode];
+}
+
module.exports = {
getTalentName,
getTalentRarity,
+ getTalentRarityIndex,
getHero,
+ getMode,
};
diff --git a/src/maps/modes.json b/src/maps/modes.json
new file mode 100644
index 0000000..e683464
--- /dev/null
+++ b/src/maps/modes.json
@@ -0,0 +1,8 @@
+{
+ "blitz_pvp_ranked": "Blitz",
+ "casual_aral": "Battle Royale",
+ "ranked": "3v3 Ranked",
+ "5v5_pvp_ranked": "5v5 Ranked",
+ "casual": "3v3 Casual",
+ "5v5_casual": "5v5 Casual"
+}