1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 11:23:00 +08:00

Replace piecewise linear function + rebalance

This commit is contained in:
smoogipoo 2018-12-09 15:05:58 +09:00
parent 9ad7970167
commit 434d7d1809

View File

@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
double angleBonus = 1.0;
if (current.Angle != null)
angleBonus = MathHelper.Clamp((angle_bonus_begin - current.Angle.Value) / pi_over_4 * 0.25 + 1.0, min_angle_bonus, max_angle_bonus);
angleBonus = MathHelper.Clamp((angle_bonus_begin - current.Angle.Value) / pi_over_4 * 0.5 + 1.0, min_angle_bonus, max_angle_bonus);
return angleBonus * (0.95 + Math.Pow(distance / SINGLE_SPACING_THRESHOLD, 4)) / current.StrainTime;
}