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

added wide angle buff to velchange

This commit is contained in:
Xexxar 2021-09-25 03:37:19 +00:00
parent 010078778e
commit 9802f4fc90

View File

@ -73,13 +73,13 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
// add in angle velocity.
aimStrain += angleBonus;
}
if (prevVector.Length > currVector.Length)
{
double velChangeBonus = Math.Max(0, Math.Sqrt((prevVector.Length - currVector.Length) * currVector.Length) - Math.Max(0, currVector.Length - 100 / osuCurrObj.StrainTime)) * Math.Min(1, osuCurrObj.JumpDistance / 100);
if (prevVector.Length > currVector.Length)
{
double velChangeBonus = Math.Max(0, Math.Sqrt((prevVector.Length - currVector.Length) * currVector.Length) - Math.Max(0, currVector.Length - 100 / osuCurrObj.StrainTime)) * Math.Min(1, osuCurrObj.JumpDistance / 100);
aimStrain += velChangeBonus * vel_change_multiplier;
aimStrain += velChangeBonus * (1 + wideAngleBonus)* vel_change_multiplier;
}
}
}
else // There is a rhythm change