From 74d606bef1d0259fa28dee011db41de1fb236b98 Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 12 Jul 2018 11:34:43 +0200 Subject: Add Blitz Points statistics --- src/maps/maps.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/maps') diff --git a/src/maps/maps.js b/src/maps/maps.js index ce91c24..7b48ce0 100644 --- a/src/maps/maps.js +++ b/src/maps/maps.js @@ -78,6 +78,18 @@ function playersPerMatch(mode) { return mode.includes('5v5')? 10 : 6; } +function killDeathPoints(entry) { + return entry.Kills - entry.Deaths; +} + +function objectivePoints(entry) { + return entry.CrystalMinerKills + entry.GoldMinerKills + entry.TurretKills; +} + +function blitzPointsDelta(entry) { + return killDeathPoints(entry) + objectivePoints(entry) * 3; +} + module.exports = { RARITIES, getTalentName, @@ -88,4 +100,7 @@ module.exports = { getMode, hasTalents, playersPerMatch, + killDeathPoints, + objectivePoints, + blitzPointsDelta, }; -- cgit v1.3.1