1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

add a log to aim length so it doesn't explode on really really long consistent maps

This commit is contained in:
kwotaq 2024-11-28 00:15:40 +02:00 committed by TextAdventurer12
parent fcf7e0034d
commit 9bfcb64741

View File

@ -66,7 +66,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty
double aimNoSlidersRelevantObjectCount = ((OsuStrainSkill)skills[1]).CountRelevantObjects();
double speedRelevantObjectCount = ((OsuStrainSkill)skills[2]).CountRelevantObjects();
double aimLengthBonus = (aimRelevantObjectCount < 25 ? 0.8 + aimRelevantObjectCount / 150.0 : 0.9 + aimRelevantObjectCount / 375.0);
double aimLengthBonus = (aimRelevantObjectCount < 25 ? 0.8 + aimRelevantObjectCount / 150.0 : 0.9 + Math.Min(1.5, aimRelevantObjectCount / 375.0) +
(aimRelevantObjectCount > 562.5 ? Math.Log10(aimRelevantObjectCount / 562.5) : 0));
aimRating *= Math.Cbrt(aimLengthBonus);
double aimNoSlidersLengthBonus = (aimNoSlidersRelevantObjectCount < 25 ? 0.8 + aimNoSlidersRelevantObjectCount / 150.0 : 0.9 + aimNoSlidersRelevantObjectCount / 375.0);
aimRatingNoSliders *= Math.Cbrt(aimNoSlidersLengthBonus);