1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Use curve for holdAddition validity cutoff

This commit is contained in:
63411 2022-04-21 23:05:20 +08:00
parent a0a83fb51f
commit e7a149af6c

View File

@ -62,8 +62,7 @@ namespace osu.Game.Rulesets.Mania.Difficulty.Skills
holdEndTimes[column] = endTime;
// The hold addition only is valid if there is _no_ other note with the same ending. Releasing multiple notes at the same time is just as easy as releasing 1
if (closestEndTime < 1)
holdAddition = 0;
holdAddition *= 1 / (1 + Math.Exp(0.5 * (24 - closestEndTime)));
// Increase individual strain in own column
individualStrains[column] += 2.0 * holdFactor;