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

Update Skill.cs

This commit is contained in:
Givikap120 2024-11-17 20:38:43 +02:00
parent d620094eac
commit 63444c9939

View File

@ -52,6 +52,10 @@ namespace osu.Game.Rulesets.Difficulty.Skills
return 0.0;
double consistentTopStrain = DifficultyValue() / 10; // What would the top strain be if all strain values were identical
if (consistentTopStrain == 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))));
}