diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-05-21 16:28:24 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-12-13 16:59:35 +0100 |
| commit | b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55 (patch) | |
| tree | 7d8a71b1da5fb4f6aa217fd88ed87212d05a036b /src/Highlights.vue | |
| parent | 365e27048fc9a17137fc3d5488103085384af1b9 (diff) | |
| download | brokentalents-b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55.tar.gz brokentalents-b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55.zip | |
Support talentless modes
Diffstat (limited to 'src/Highlights.vue')
| -rw-r--r-- | src/Highlights.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Highlights.vue b/src/Highlights.vue index 02392ee..c4d288d 100644 --- a/src/Highlights.vue +++ b/src/Highlights.vue @@ -14,7 +14,7 @@ title="Trending" type="Total Pick Rate" label="%" - :value="(100 * 6 * stats.topPick.Count / stats.totalPicks).toFixed(2)" + :value="(100 * playersPerMatch * stats.topPick.Count / stats.totalPicks).toFixed(2)" :entry="stats.topPick" /> </div> @@ -77,6 +77,7 @@ import Vue from 'vue'; import TalentBox from './TalentBox.vue'; import RouterParamMixin from './RouterParamMixin.js'; +import * as maps from './maps/maps.js'; export default Vue.component('highlights', { props: [ 'reportService' ], @@ -95,6 +96,9 @@ export default Vue.component('highlights', { lowestLevelAvg: this.reportService.getLowestLevelAvg(this.selectedMode), }; }, + playersPerMatch: function() { + return maps.playersPerMatch(this.selectedMode); + }, }, components: { TalentBox, |
