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

Clean up code style issues

This commit is contained in:
Bartłomiej Dach 2021-08-21 16:43:38 +02:00
parent a46ae855aa
commit 812c85f3de
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 1 additions and 4 deletions

View File

@ -197,8 +197,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
pm * Math.Pow(229.5 - 11 * Attributes.OverallDifficulty, 2.0);
double accuracyValue = 2.83 * Math.Pow(1.52163, (79.5 - 2 * Math.Sqrt(variance)) / 6.0)
* Math.Pow(Math.Log(1.0 + (Math.E - 1.0) * (Math.Min(amountHitObjectsWithAccuracy, 1600) / 1000.0)), 0.5);
* Math.Pow(Math.Log(1.0 + (Math.E - 1.0) * (Math.Min(amountHitObjectsWithAccuracy, 1600) / 1000.0)), 0.5);
if (mods.Any(m => m is OsuModHidden))
accuracyValue *= 1.08;

View File

@ -86,7 +86,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
{
islandSize++; // island is still progressing, count size.
}
else
{
if (islandSize > 6)
@ -152,7 +151,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
angleBonus = 1.25;
else if (angle < angle_bonus_begin)
angleBonus = 1 + Math.Pow(Math.Sin(1.5 * (angle_bonus_begin - angle)), 2) / 4;
}
return (angleBonus * speedBonus * Math.Pow(distance / single_spacing_threshold, 3.5)) / osuCurrObj.StrainTime;