summaryrefslogtreecommitdiff
path: root/src/maps
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-05-21 16:28:24 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-12-13 16:59:35 +0100
commitb7a276d54ae88fde32cd1fba0ec4bb1ac41cab55 (patch)
tree7d8a71b1da5fb4f6aa217fd88ed87212d05a036b /src/maps
parent365e27048fc9a17137fc3d5488103085384af1b9 (diff)
downloadbrokentalents-b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55.tar.gz
brokentalents-b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55.zip
Support talentless modes
Diffstat (limited to 'src/maps')
-rw-r--r--src/maps/maps.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/maps/maps.js b/src/maps/maps.js
index cc6ee4b..9bd252e 100644
--- a/src/maps/maps.js
+++ b/src/maps/maps.js
@@ -55,10 +55,20 @@ function getMode(mode) {
return modes[mode];
}
+function hasTalents(mode) {
+ return ['blitz_pvp_ranked', 'casual_aral'].includes(mode);
+}
+
+function playersPerMatch(mode) {
+ return mode.includes('5v5')? 10 : 6;
+}
+
module.exports = {
getTalentName,
getTalentRarity,
getTalentRarityIndex,
getHero,
getMode,
+ hasTalents,
+ playersPerMatch,
};