mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 06:37:43 +08:00
More correct but not too important
This commit is contained in:
parent
2ea2e5f1db
commit
d0e793a3b3
@ -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))));
|
||||
|
Loading…
Reference in New Issue
Block a user