diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-21 13:09:05 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 16:59:33 +0100 |
| commit | aea0fa999fd09951835b2d74c53137624f46929e (patch) | |
| tree | 3d806b7b5c5dd8b95fd07d6f3402d2231cf981d4 /src/maps | |
| parent | 73e2c234f2f52357b21fd9fe9b956eeabb8ddc62 (diff) | |
| download | brokentalents-aea0fa999fd09951835b2d74c53137624f46929e.tar.gz brokentalents-aea0fa999fd09951835b2d74c53137624f46929e.zip | |
major redesign
Diffstat (limited to 'src/maps')
| -rw-r--r-- | src/maps/maps.js | 11 | ||||
| -rw-r--r-- | src/maps/modes.json | 8 |
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" +} |
