1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 09:53:18 +08:00

Merge pull request #20024 from smoogipoo/populate-maximum-statistics-test

Populate `MaximumStatistics` for test scores
This commit is contained in:
Dean Herbert 2022-08-30 15:44:52 +09:00 committed by GitHub
commit ea7e5797d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -194,8 +194,16 @@ namespace osu.Game.Tests.Resources
[HitResult.LargeTickHit] = 100,
[HitResult.LargeTickMiss] = 50,
[HitResult.SmallBonus] = 10,
[HitResult.SmallBonus] = 50
[HitResult.LargeBonus] = 50
},
MaximumStatistics = new Dictionary<HitResult, int>
{
[HitResult.Perfect] = 971,
[HitResult.SmallTickHit] = 75,
[HitResult.LargeTickHit] = 150,
[HitResult.SmallBonus] = 10,
[HitResult.LargeBonus] = 50,
}
};
private class TestModHardRock : ModHardRock

View File

@ -61,6 +61,7 @@ namespace osu.Game.Tests.Visual.Playlists
userScore = TestResources.CreateTestScoreInfo();
userScore.TotalScore = 0;
userScore.Statistics = new Dictionary<HitResult, int>();
userScore.MaximumStatistics = new Dictionary<HitResult, int>();
bindHandler();