Merge pull request #20033 from apollo-dw/speed-notes-fix

Fix relevant note count summation in osu!'s Speed skill
This commit is contained in:
Dan Balasescu 2022-08-31 19:15:40 +09:00 committed by GitHub
commit 8c202ce141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
if (maxStrain == 0)
return 0;
return objectStrains.Aggregate((total, next) => total + (1.0 / (1.0 + Math.Exp(-(next / maxStrain * 12.0 - 6.0)))));
return objectStrains.Sum(strain => 1.0 / (1.0 + Math.Exp(-(strain / maxStrain * 12.0 - 6.0))));
}
}
}