Ticket #3150: team_exploration_score.patch
File team_exploration_score.patch, 1.8 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/credits/texts/programming.json
83 83 {"nick": "h20", "name": "Daniel Wilhelm"}, 84 84 {"nick": "historic_bruno", "name": "Ben Brian"}, 85 85 {"nick": "idanwin"}, 86 {"nick": "Imarok", "name": "J. S."}, 86 87 {"nick": "infyquest", "name": "Vijay Kiran Kamuju"}, 87 88 {"nick": "IronNerd", "name": "Matthew McMullan"}, 88 89 {"nick": "Itms", "name": "Nicolas Auvray"}, -
binaries/data/mods/public/gui/summary/counters.js
1 1 // FUNCTIONS FOR CALCULATING SCORES 2 2 var g_TeamMiscHelperData = []; 3 var teamExploration = []; 3 4 4 5 function resetDataHelpers() 5 6 { … … 31 32 } 32 33 33 34 function calculateExplorationScore(playerState, position) 34 { 35 { 36 teamExploration[playerState.team] = playerState.statistics.teamPercentMapExplored; 35 37 return playerState.statistics.percentMapExplored * 10; 36 38 } 37 39 … … 52 54 for (let w in counters) 53 55 { 54 56 let total = 0; 55 for (let p = 0; p < g_Teams[t]; ++p) 56 total += (+Engine.GetGUIObjectByName("valueDataTeam[" + t + "][" + p + "][" + w + "]").caption); 57 57 if(w == 2){ total = teamExploration[t] * 10;} 58 else 59 { 60 for (let p = 0; p < g_Teams[t]; ++p) 61 { 62 total += (+Engine.GetGUIObjectByName("valueDataTeam[" + t + "][" + p + "][" + w + "]").caption); 63 } 64 } 58 65 Engine.GetGUIObjectByName("valueDataTeam[" + t + "][" + w + "]").caption = total; 59 66 } 60 67 }