mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Add test step to TestSceneRankingsTable
This commit is contained in:
@ -44,8 +44,8 @@ namespace osu.Game.Overlays.Rankings.Tables
|
||||
new ColoredRowText { Text = $@"{item.PlayCount:N0}", },
|
||||
}.Concat(CreateUniqueContent(item)).Concat(new[]
|
||||
{
|
||||
new ColoredRowText { Text = $@"{item.GradesCount.SS + item.GradesCount.SSPlus:N0}", },
|
||||
new ColoredRowText { Text = $@"{item.GradesCount.S + item.GradesCount.SPlus:N0}", },
|
||||
new ColoredRowText { Text = $@"{item.GradesCount.SS + (item.GradesCount.SSPlus ?? 0):N0}", },
|
||||
new ColoredRowText { Text = $@"{item.GradesCount.S + (item.GradesCount.SPlus ?? 0):N0}", },
|
||||
new ColoredRowText { Text = $@"{item.GradesCount.A:N0}", }
|
||||
}).ToArray();
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace osu.Game.Users
|
||||
public decimal? PP;
|
||||
|
||||
[JsonProperty(@"pp_rank")] // the API sometimes only returns this value in condensed user responses
|
||||
private int rank
|
||||
private int? rank
|
||||
{
|
||||
set => Ranks.Global = value;
|
||||
}
|
||||
@ -71,13 +71,13 @@ namespace osu.Game.Users
|
||||
public struct Grades
|
||||
{
|
||||
[JsonProperty(@"ssh")]
|
||||
public int SSPlus;
|
||||
public int? SSPlus;
|
||||
|
||||
[JsonProperty(@"ss")]
|
||||
public int SS;
|
||||
|
||||
[JsonProperty(@"sh")]
|
||||
public int SPlus;
|
||||
public int? SPlus;
|
||||
|
||||
[JsonProperty(@"s")]
|
||||
public int S;
|
||||
@ -85,7 +85,7 @@ namespace osu.Game.Users
|
||||
[JsonProperty(@"a")]
|
||||
public int A;
|
||||
|
||||
public int this[ScoreRank rank]
|
||||
public int? this[ScoreRank rank]
|
||||
{
|
||||
get
|
||||
{
|
||||
|
Reference in New Issue
Block a user