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 --- backend/config.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/config.js b/backend/config.js index 72952a2..3fd675e 100644 --- a/backend/config.js +++ b/backend/config.js @@ -51,7 +51,14 @@ module.exports = { }, etl: { /* attributes to be extracted and renamed from main API data */ - participant: [ ['Winner', ['attributes', 'stats', 'winner']] ], + participant: [ + ['Winner', ['attributes', 'stats', 'winner']], + ['Kills', ['attributes', 'stats', 'kills']], + ['Deaths', ['attributes', 'stats', 'deaths']], + ['CrystalMinerKills', ['attributes', 'stats', 'crystalMineCaptures']], + ['GoldMinerKills', ['attributes', 'stats', 'goldMineCaptures']], + ['TurretKills', ['attributes', 'stats', 'turretCaptures']], + ], roster: [ ], match: [ ['Mode', ['attributes', 'gameMode']] ], }, @@ -67,7 +74,7 @@ module.exports = { /* criteria or 'filters' */ group: ['Actor', 'Talent', 'Mode', 'LevelBucket'], /* stats */ - sum: ['Winner'], + sum: ['Winner', 'Kills', 'Deaths', 'CrystalMinerKills', 'GoldMinerKills', 'TurretKills'], }, file: { pattern: (moment) => `./data/${hashSettings(module.exports)}/${moment.toISOString()}.json`, -- cgit v1.3.1