Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/lobby/LobbyRatingReport/Misc.js
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
/** | |||||
* This class counts trade, tributes, loot and map exploration. | |||||
*/ | |||||
LobbyRatingReport.prototype.Misc = class | |||||
{ | |||||
InsertValues(report, playerStates) | |||||
{ | |||||
for (let category of this.MiscCategories) | |||||
report[category] = playerStates.map(playerState => | |||||
playerState.sequences[category][playerState.sequences.time.length - 1]).join(",") + ","; | |||||
} | |||||
}; | |||||
LobbyRatingReport.prototype.Misc.prototype.MiscCategories = [ | |||||
"tradeIncome", | |||||
"tributesSent", | |||||
"tributesReceived", | |||||
"treasuresCollected", | |||||
"lootCollected", | |||||
"percentMapExplored" | |||||
]; |
Wildfire Games · Phabricator