From b7a276d54ae88fde32cd1fba0ec4bb1ac41cab55 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Mon, 21 May 2018 16:28:24 +0200
Subject: Support talentless modes

---
 src/Highlights.vue | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/Highlights.vue')

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,
-- 
cgit v1.3.1

