Index: binaries/data/mods/public/gui/summary/counters.js =================================================================== --- binaries/data/mods/public/gui/summary/counters.js +++ binaries/data/mods/public/gui/summary/counters.js @@ -349,6 +349,15 @@ return { "percent": playerState.sequences.peakPercentMapControlled[index] }; } +function calculateEffectivenessRatio(playerState, index) +{ + let total = 0; + for (let type of g_ResourceData.GetCodes()) + total += playerState.sequences.resourcesUsed[type][index] - playerState.sequences.resourcesSold[type][index] + + return calculateMilitaryScore*10/total; +} + function calculateMiscellaneousTeam(team, index, type, counters, headings) { if (type == "vegetarianRatio") Index: binaries/data/mods/public/gui/summary/layout.js =================================================================== --- binaries/data/mods/public/gui/summary/layout.js +++ binaries/data/mods/public/gui/summary/layout.js @@ -192,6 +192,7 @@ "headings": [ { "identifier": "playername", "caption": translate("Player name"), "yStart": 26, "width": 200 }, { "identifier": "killDeath", "caption": translate("Kill / Death ratio"), "yStart": 16, "width": 100, "format": "DECIMAL2" }, + { "identifier": "effectivenessRatio", "caption": translate("Military score / spending"), "yStart": 16, "width": 100, "format": "DECIMAL2" } { "identifier": "population", "caption": translate("Population"), "yStart": 16, "width": 100, "hideInSummary": true }, { "identifier": "mapControlPeak", "caption": translate("Map control (peak)"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, { "identifier": "mapControl", "caption": translate("Map control (finish)"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, @@ -213,6 +214,7 @@ "titleHeadings": [], "counters": [ { "width": 100, "fn": calculateKillDeathRatio, "verticalOffset": 12 }, + { "width": 100, "fn": calculateEffectivenessRatio, "verticalOffset": 12}, { "width": 100, "fn": calculatePopulationCount, "verticalOffset": 12, "hideInSummary": true }, { "width": 100, "fn": calculateMapPeakControl, "verticalOffset": 12 }, { "width": 100, "fn": calculateMapFinalControl, "verticalOffset": 12 },