summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-14 09:37:19 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-14 09:37:19 +0200
commit3a1bde411154856a821f2d9baa9d9e2c343ce8a0 (patch)
treef37ef640dd335d4af18eceaad212edb75c309c2f
parent765e9356fa6b571838237cc73bc9552c1e6695d8 (diff)
downloadprocessor-3a1bde411154856a821f2d9baa9d9e2c343ce8a0.tar.gz
processor-3a1bde411154856a821f2d9baa9d9e2c343ce8a0.zip
comment out sustain score
-rw-r--r--worker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index 05f81b6..1f5a549 100644
--- a/worker.js
+++ b/worker.js
@@ -434,13 +434,14 @@ function snakeCaseKeys(obj) {
if (roster.hero_kills == 0) p_s.kill_participation = 0;
else p_s.kill_participation = (p_s.kills + p_s.assists) / roster.hero_kills;
+ /* example
p_s.sustain_score = participant.items.reduce((score, item) => {
// items[], itemGrants{}, itemUse{}, itemSells{} are the API objects
// old item names to clean names need to be mapped via `item_name_map[oldname]`
if (["Eve of Harvest", "Serpent Mask"].indexOf(item_name_map[item]) != -1)
return score + 20;
return score;
- }, 0);
+ }, 0);*/
return [p, p_s];
}