Use curve for holdAddition validity cutoff

This commit is contained in:
63411 2022-04-21 23:05:20 +08:00
parent a0a83fb51f
commit e7a149af6c
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ protected override double StrainValueOf(DifficultyHitObject current)
holdEndTimes[column] = endTime; 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 // 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 *= 1 / (1 + Math.Exp(0.5 * (24 - closestEndTime)));
holdAddition = 0;
// Increase individual strain in own column // Increase individual strain in own column
individualStrains[column] += 2.0 * holdFactor; individualStrains[column] += 2.0 * holdFactor;