Include game name in the output stats

This commit is contained in:
JustArchi
2019-07-02 21:22:28 +02:00
parent e947bac0e7
commit 8b1cc1030e

View File

@@ -1784,7 +1784,7 @@ namespace ArchiSteamFarm {
ownedGamesStats[gameID] = ownedGameStats;
}
IEnumerable<string> extraResponses = ownedGamesStats.Select(kv => FormatStaticResponse(string.Format(Strings.BotOwnsOverviewPerGame, kv.Value, validResults.Count, kv.Key)));
IEnumerable<string> extraResponses = ownedGamesStats.Select(kv => FormatStaticResponse(string.Format(Strings.BotOwnsOverviewPerGame, kv.Value, validResults.Count, kv.Key + (!string.IsNullOrEmpty(kv.Value.GameName) ? " | " + kv.Value.GameName : ""))));
return string.Join(Environment.NewLine, validResults.Select(result => result.Response).Concat(extraResponses));
}