mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-10 01:50:46 +09:00
Grouped play values in a ScoreStatistics item in SimulateCommand output
This commit is contained in:
parent
d1d95671d4
commit
7016867bdb
1 changed files with 6 additions and 7 deletions
|
@ -94,18 +94,17 @@ namespace PerformanceCalculator.Simulate
|
|||
{ "Beatmap", workingBeatmap.BeatmapInfo.ToString() }
|
||||
};
|
||||
|
||||
o["ScoreStatistics"] = new JObject {};
|
||||
|
||||
foreach (var info in getPlayValues(scoreInfo, beatmap))
|
||||
o["ScoreStatistics"][info.Key] = info.Value;
|
||||
|
||||
foreach (var kvp in categoryAttribs)
|
||||
o[kvp.Key] = kvp.Value;
|
||||
|
||||
o["Mods"] = mods.Length > 0 ? mods.Select(m => m.Acronym).Aggregate((c, n) => $"{c}, {n}") : "None";
|
||||
|
||||
o["pp"] = new JObject
|
||||
{
|
||||
{ "Total", pp },
|
||||
};
|
||||
|
||||
foreach (var info in getPlayValues(scoreInfo, beatmap))
|
||||
o["pp"][info.Key] = info.Value;
|
||||
o["pp"] = pp;
|
||||
|
||||
string json = o.ToString();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue