Port osu-performance changes into OsuPerformanceCalculator

This commit is contained in:
smoogipoo
2018-05-12 15:46:25 +09:00
parent 67e1dca0f9
commit 416ed72597

View File

@ -121,7 +121,7 @@ namespace osu.Game.Rulesets.Osu.Scoring
aimValue *= approachRateFactor;
if (mods.Any(h => h is OsuModHidden))
aimValue *= 1.18f;
aimValue *= 1.03f;
if (mods.Any(h => h is OsuModFlashlight))
{
@ -152,6 +152,9 @@ namespace osu.Game.Rulesets.Osu.Scoring
if (beatmapMaxCombo > 0)
speedValue *= Math.Min(Math.Pow(scoreMaxCombo, 0.8f) / Math.Pow(beatmapMaxCombo, 0.8f), 1.0f);
if (mods.Any(m => m is OsuModHidden))
speedValue *= 1.18f;
// Scale the speed value with accuracy _slightly_
speedValue *= 0.5f + accuracy / 2.0f;
// It is important to also consider accuracy difficulty when doing that