1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:25:05 +08:00

set angleBonus to take max of acute and wide multipliers

This commit is contained in:
Xexxar 2021-11-03 16:36:39 +00:00
parent 7fc60a840e
commit a32c97427d

View File

@ -94,7 +94,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
wideAngleBonus *= angleBonus * (1 - Math.Min(wideAngleBonus, Math.Pow(calcWideAngleBonus(lastAngle), 3))); // Penalize wide angles if they're repeated, reducing the penalty as the lastAngle gets more acute.
acuteAngleBonus *= 0.5 + 0.5 * (1 - Math.Min(acuteAngleBonus, Math.Pow(calcAcuteAngleBonus(lastLastAngle), 3))); // Penalize acute angles if they're repeated, reducing the penalty as the lastLastAngle gets more obtuse.
angleBonus = acuteAngleBonus * acute_angle_multiplier + wideAngleBonus * wide_angle_multiplier; // add the angle buffs together.
angleBonus = Math.Max(acuteAngleBonus * acute_angle_multiplier, wideAngleBonus * wide_angle_multiplier); // Take the max of the multipliers.
}
}