1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 09:07:25 +08:00

More correct but not too important

This commit is contained in:
Nathen 2024-11-14 01:50:05 -05:00
parent 2ea2e5f1db
commit d0e793a3b3

View File

@ -76,7 +76,7 @@ namespace osu.Game.Rulesets.Difficulty.Skills
double consistentTopStrain = DifficultyValue() / 10; // What would the top strain be if all strain values were identical
if (consistentTopStrain == 0)
return 0.0;
return ObjectStrains.Count;
// Use a weighted sum of all strains. Constants are arbitrary and give nice values
return ObjectStrains.Sum(s => 1.1 / (1 + Math.Exp(-10 * (s / consistentTopStrain - 0.88))));