summaryrefslogtreecommitdiff
path: root/src/maps/maps.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/maps/maps.js')
-rw-r--r--src/maps/maps.js11
1 files changed, 11 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,
};