diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 10:05:25 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-14 10:05:25 +0200 |
| commit | 26246829e62b5e7ff1c02b7c6526ece5deaabc2e (patch) | |
| tree | 04545023a6cb63c0cbdc35a91bc3a44cfba4e11a /worker.js | |
| parent | dc8b4f09a9ade53ccac37543e14abbbeda13bac1 (diff) | |
| parent | 57a968a955b164b3730cbcce0bedebea3aede0dc (diff) | |
| download | shrinker-26246829e62b5e7ff1c02b7c6526ece5deaabc2e.tar.gz shrinker-26246829e62b5e7ff1c02b7c6526ece5deaabc2e.zip | |
Merge branch 'release/2.0.0' of https://gitlab.com/vainglorygame/processor into release/2.0.0
Diffstat (limited to 'worker.js')
| -rw-r--r-- | worker.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -433,6 +433,11 @@ function snakeCaseKeys(obj) { "gold", "farm"].map((attr) => p_s[attr] = participant[attr]); + // score calculations + var impact_score = -0.28779906 + (p_s.kills * 0.22290324) + (p_s.deaths * -0.50438917) + (p_s.assists * 0.34841597); + p_s.impact_score = (impact_score + 10) / (10 + 10); + + // traits calculations if (roster.hero_kills == 0) p_s.kill_participation = 0; else p_s.kill_participation = (p_s.kills + p_s.assists) / roster.hero_kills; |
