1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 00:53:22 +08:00

Fix incorrect standardised score estimation on selected beatmaps

This commit is contained in:
Bartłomiej Dach 2024-02-24 09:55:51 +01:00
parent 05f0b4796c
commit e80b08c46f
No known key found for this signature in database

View File

@ -365,6 +365,17 @@ namespace osu.Game.Database
+ bonusProportion) * modMultiplier);
}
// see similar check above.
// if there is no legacy combo score, all combo conversion operations below
// are either pointless or wildly wrong.
if (maximumLegacyComboScore + maximumLegacyBonusScore == 0)
{
return (long)Math.Round((
500000 * comboProportion // as above, zero if mods result in zero multiplier, one otherwise
+ 500000 * Math.Pow(score.Accuracy, 5)
+ bonusProportion) * modMultiplier);
}
// Assumptions:
// - sliders and slider ticks are uniformly distributed in the beatmap, and thus can be ignored without losing much precision.
// We thus consider a map of hit-circles only, which gives objectCount == maximumCombo.