From b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 21 May 2018 16:28:24 +0200 Subject: Support talentless modes --- src/maps/maps.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/maps/maps.js') 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, }; -- cgit v1.3.1