Simplifiy user statistics retrieval to one-time on deserialization

This commit is contained in:
Salman Ahmed
2021-02-09 09:54:17 +03:00
parent 62514f23b5
commit d15ffff9a5
3 changed files with 20 additions and 29 deletions

View File

@ -157,7 +157,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
Username = $"User {i}",
AllStatistics =
{
{ Ruleset.Value, new UserStatistics { GlobalRank = RNG.Next(1, 100000) } }
{ Ruleset.Value.ShortName, new UserStatistics { GlobalRank = RNG.Next(1, 100000) } }
},
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c3.jpg",
});
@ -198,7 +198,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
Username = "User 0",
AllStatistics =
{
{ Ruleset.Value, new UserStatistics { GlobalRank = RNG.Next(1, 100000) } }
{ Ruleset.Value.ShortName, new UserStatistics { GlobalRank = RNG.Next(1, 100000) } }
},
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c3.jpg",
});