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.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,
};