diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 09:37:19 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 09:37:19 +0200 |
| commit | 3a1bde411154856a821f2d9baa9d9e2c343ce8a0 (patch) | |
| tree | f37ef640dd335d4af18eceaad212edb75c309c2f | |
| parent | 765e9356fa6b571838237cc73bc9552c1e6695d8 (diff) | |
| download | processor-3a1bde411154856a821f2d9baa9d9e2c343ce8a0.tar.gz processor-3a1bde411154856a821f2d9baa9d9e2c343ce8a0.zip | |
comment out sustain score
| -rw-r--r-- | worker.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]; } |
