<% var idx = 1; data = data.player_game_list[0]; %>
<% var win = data.team_win.player_champions; if(win && win.length > 0) { _.each(win, function(player) { var summonerNameFiltered, summonerTitle, leaverFlag, urlAvatar, urlSkill1, urlSkill2,MVPEva,isMVP; var playerInfo = player.player; var champion = player.champion; var spells = player.spells; // 实际是 playerName summonerNameFiltered = playerInfo.pn; summonerTitle =champion.display_name; leaverFlag = player.is_deserter ? "(逃)" : ""; urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg'; if (spells[0] && spells[0].id) { urlSkill1 = spells[0].url_img; } else { urlSkill1 = null; } if (spells[1] && spells[1].id) { urlSkill2 = spells[1].url_img; } else { urlSkill2 = null; } var TOTAL_KILLED = player.total_killed; var TOTAL_DEATH = player.total_death; var TOTAL_ASSIST = player.total_assist; var GOLD_EARNED = player.gold_earned_in_k; var TOTAL_TIME_SPENT_DEAD = player.total_time_spent_dead; var PHYSICAL_DAMAGE_TAKEN = player.physical_damage_taken; var MAGIC_DAMAGE_TAKEN = player.magic_damage_taken; var TRUE_DAMAGE_TAKEN = player.true_damage_taken; var TOTAL_DAMAGE_DEALT_TO_BUILDINGS = player.total_damage_dealt_to_buildings; var MINIONS_KILLED = player.total_minions_killed; var TOTAL_TIME_CROWD_CONTROL_DEALT = player.total_neutral_minions_killed; var SIGHT_WARDS_BOUGHT_IN_GAME = player.sight_wards_bought_in_game; var TURRETS_KILLED = player.total_turrets_killed; var BARRACKS_KILLED = player.total_barracks_killed; var WARD_PLACED = player.total_ward_placed; var WARD_KILLED = player.total_ward_killed; var LARGEST_KILLING_SPREE = player.largest_killing_spree; var LARGEST_MULTI_KILL = player.largest_multi_kill; var LARGEST_CRITICAL_STRIKE = player.largest_critical_strike || '-'; var TOTAL_HEAL = player.total_heal || '-'; var TOTAL_DAMAGE_DEALT = player.total_damage_dealt; var TOTAL_DAMAGE_TAKEN = player.total_damage_taken; var TOTAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_damage_dealt_to_champions; var PHYSICAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_physical_damage_dealt_to_champions; var MAGIC_DAMAGE_DEALT_TO_CHAMPIONS = player.total_magic_damage_dealt_to_champions; var TRUE_DAMAGE_DEALT_TO_CHAMPIONS = player.total_true_damage_dealt_to_champions; var NEUTRAL_MINIONS_KILLED_TOTAL = player.total_neutral_minions_killed; MVPEva = player.evaluate_in_game; isMVP = player['flag_mvp_carry'] == 1 ? true : false; isHope = player['flag_mvp_carry'] == 2 ? true : false; var isMVPOrHope = ''; if (isHope) { isMVPOrHope = 'tip-big-avatar--stronger'; } else if (isMVP) { isMVPOrHope = 'tip-big-avatar--mvp'; } idx ++; %>

<%=summonerNameFiltered%>

<%=summonerTitle%> <% if (player['is_bot']) {} else { %>

<% if (urlSkill1) { %> <% } %> <% if (urlSkill2) { %> <% } %>

<% } %>

...

...

<% if (MVPEva) { %> <% } %>
战局评分: <%=MVPEva%>
击杀: <%=TOTAL_KILLED%> 死亡: <%=TOTAL_DEATH%>
助攻: <%=TOTAL_ASSIST%> 金钱: <%=GOLD_EARNED%>
最高连杀: <%=LARGEST_KILLING_SPREE%> 最高多杀: <%=LARGEST_MULTI_KILL%>
最大暴击: <%=LARGEST_CRITICAL_STRIKE%> 总治疗: <%=TOTAL_HEAL%>
击杀小兵: <%=MINIONS_KILLED%> 击杀野怪: <%=NEUTRAL_MINIONS_KILLED_TOTAL%>
推塔: <%=TURRETS_KILLED%> 兵营: <%=BARRACKS_KILLED%>
对建筑伤害: <%=TOTAL_DAMAGE_DEALT_TO_BUILDINGS%> 购买真眼: <%=SIGHT_WARDS_BOUGHT_IN_GAME%>
放眼数: <%=WARD_PLACED%> 排眼数: <%=WARD_KILLED%>

给对方英雄造成总伤害: <%=TOTAL_DAMAGE_DEALT_TO_CHAMPIONS%>

承受伤害: <%=TOTAL_DAMAGE_TAKEN%>

<% }); } %> <% var loser = data.team_lose.player_champions; if(loser && loser.length > 0) { _.each(loser, function(player) { var summonerNameFiltered, summonerTitle, leaverFlag, urlAvatar, urlSkill1, urlSkill2,MVPEva,isMVP; var playerInfo = player.player; var champion = player.champion; var spells = player.spells; // 实际是 playerName summonerNameFiltered = playerInfo.pn; summonerTitle =champion.display_name; leaverFlag = player.is_deserter ? "(逃)" : ""; urlAvatar = staticImg + '/champions/' + champion.name + '_40x40.jpg'; if (spells[0] && spells[0].id) { urlSkill1 = spells[0].url_img; } else { urlSkill1 = null; } if (spells[1] && spells[1].id) { urlSkill2 = spells[1].url_img; } else { urlSkill2 = null; } var TOTAL_KILLED = player.total_killed; var TOTAL_DEATH = player.total_death; var TOTAL_ASSIST = player.total_assist; var GOLD_EARNED = player.gold_earned_in_k; var TOTAL_TIME_SPENT_DEAD = player.total_time_spent_dead; var PHYSICAL_DAMAGE_TAKEN = player.physical_damage_taken; var MAGIC_DAMAGE_TAKEN = player.magic_damage_taken; var TRUE_DAMAGE_TAKEN = player.true_damage_taken; var TOTAL_DAMAGE_DEALT_TO_BUILDINGS = player.total_damage_dealt_to_buildings; var MINIONS_KILLED = player.total_minions_killed; var TOTAL_TIME_CROWD_CONTROL_DEALT = player.total_neutral_minions_killed; var SIGHT_WARDS_BOUGHT_IN_GAME = player.sight_wards_bought_in_game; var TURRETS_KILLED = player.total_turrets_killed; var BARRACKS_KILLED = player.total_barracks_killed; var WARD_PLACED = player.total_ward_placed; var WARD_KILLED = player.total_ward_killed; var LARGEST_KILLING_SPREE = player.largest_killing_spree; var LARGEST_MULTI_KILL = player.largest_multi_kill; var LARGEST_CRITICAL_STRIKE = player.largest_critical_strike || '-'; var TOTAL_HEAL = player.total_heal || '-'; var TOTAL_DAMAGE_DEALT = player.total_damage_dealt; var TOTAL_DAMAGE_TAKEN = player.total_damage_taken; var TOTAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_damage_dealt_to_champions; var PHYSICAL_DAMAGE_DEALT_TO_CHAMPIONS = player.total_physical_damage_dealt_to_champions; var MAGIC_DAMAGE_DEALT_TO_CHAMPIONS = player.total_magic_damage_dealt_to_champions; var TRUE_DAMAGE_DEALT_TO_CHAMPIONS = player.total_true_damage_dealt_to_champions; var NEUTRAL_MINIONS_KILLED_TOTAL = player.total_neutral_minions_killed; MVPEva = player.evaluate_in_game; isMVP = player['flag_mvp_carry'] == 1 ? true : false; isHope = player['flag_mvp_carry'] == 2 ? true : false; var isMVPOrHope = ''; if (isHope) { isMVPOrHope = 'tip-big-avatar--stronger'; } else if (isMVP) { isMVPOrHope = 'tip-big-avatar--mvp'; } idx ++; %>

<%=summonerNameFiltered%>

<%=summonerTitle%> <% if (player['is_bot']) {} else { %>

<% if (urlSkill1) { %> <% } %> <% if (urlSkill2) { %> <% } %>

<% } %>

...

...

<% if (MVPEva) { %> <% } %>
战局评分: <%=MVPEva%>
击杀: <%=TOTAL_KILLED%> 死亡: <%=TOTAL_DEATH%>
助攻: <%=TOTAL_ASSIST%> 金钱: <%=GOLD_EARNED%>
最高连杀: <%=LARGEST_KILLING_SPREE%> 最高多杀: <%=LARGEST_MULTI_KILL%>
最大暴击: <%=LARGEST_CRITICAL_STRIKE%> 总治疗: <%=TOTAL_HEAL%>
击杀小兵: <%=MINIONS_KILLED%> 击杀野怪: <%=NEUTRAL_MINIONS_KILLED_TOTAL%>
推塔: <%=TURRETS_KILLED%> 兵营: <%=BARRACKS_KILLED%>
对建筑伤害: <%=TOTAL_DAMAGE_DEALT_TO_BUILDINGS%> 购买真眼: <%=SIGHT_WARDS_BOUGHT_IN_GAME%>
放眼数: <%=WARD_PLACED%> 排眼数: <%=WARD_KILLED%>

给对方英雄造成总伤害: <%=TOTAL_DAMAGE_DEALT_TO_CHAMPIONS%>

承受伤害: <%=TOTAL_DAMAGE_TAKEN%>

<% }); } %>