File tree Expand file tree Collapse file tree 5 files changed +23
-13
lines changed
Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ export const positionMap = {
2929
3030export const assignedPositionNameMap = {
3131 top : "上单" ,
32- mid : "中单" ,
33- adc : "射手 " ,
32+ middle : "中单" ,
33+ bottom : "下路 " ,
3434 jungle : "打野" ,
35- support : "辅助"
35+ utility : "辅助"
3636} as Record < string , string > ;
3737
3838export interface ChampionPopularData {
Original file line number Diff line number Diff line change 11{
22 "name" : " joi" ,
3- "version" : " 0.5.2 " ,
3+ "version" : " 0.5.3 " ,
44 "main" : " dist-electron/main.js" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import PlayerGameInfo from "@/components/PlayerGameInfo.vue";
33import { toRefs } from " vue" ;
44import { GameDetail } from " @@/types/lcuType" ;
55
6- const props = defineProps <{ detail: GameDetail ; puuid? : string }>();
6+ const props = defineProps <{ detail? : GameDetail ; puuid? : string }>();
77const { detail } = toRefs (props );
88defineOptions ({
99 inheritAttrs: false
@@ -17,9 +17,9 @@ defineOptions({
1717 <PlayerGameInfo
1818 v-bind =" $attrs"
1919 :info =" data"
20- :play-info =" detail.participantIdentities[i]"
20+ :play-info =" detail! .participantIdentities[i]"
2121 :class =" [
22- props.puuid === detail.participantIdentities[i].player.puuid ? 'highlight-row' : ''
22+ props.puuid === detail! .participantIdentities[i].player.puuid ? 'highlight-row' : ''
2323 ]" ></PlayerGameInfo >
2424 <n-divider v-if =" i === 4" ></n-divider >
2525 </template >
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ const showSummonerName = ref("");
102102
103103function handleClick(event : any ) {
104104 showDetail .value = true ;
105- showSummonerName .value = event .name ;
106- historyListData .value = teamMap .value [event .name ].gameDetail || [];
105+ showSummonerName .value = teams . value [ event .dataIndex ]. summonerName ;
106+ historyListData .value = teams .value [event .dataIndex ].gameDetail || [];
107107}
108108 </script >
109109
Original file line number Diff line number Diff line change @@ -31,10 +31,20 @@ export function computeScore(gameDetail?: GameDetail[]) {
3131 const info = detail . participants [ 0 ] ;
3232 let { kills, assists, deaths } = info . stats ;
3333 deaths = deaths || 1 ;
34- let score =
35- info . timeline . role !== "SUPPORT"
36- ? ( kills * 1.2 + assists * 0.8 ) / ( deaths * 1.2 )
37- : ( kills * 1.2 + assists * 1.2 ) / ( deaths * 1.2 ) ;
34+ let score ;
35+ if ( info . timeline . role === "SUPPORT" && detail . gameMode !== "ARAM" ) {
36+ score = ( kills + assists * 1.2 ) / deaths ; //非大乱斗模式的辅助英雄
37+ } else {
38+ score = ( kills + assists ) / deaths ;
39+ }
40+ if ( detail . gameMode === "ARAM" || info . timeline . role !== "SUPPORT" ) {
41+ if ( deaths > 15 && kills <= 10 ) {
42+ score -= 1 ;
43+ }
44+ if ( deaths > 20 && kills <= 10 ) {
45+ score -= 1 ;
46+ }
47+ }
3848 if ( info . stats . win ) {
3949 score += 1 ;
4050 } else {
You can’t perform that action at this time.
0 commit comments