mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 03:02:59 +08:00
Clean up code style issues
This commit is contained in:
parent
a46ae855aa
commit
812c85f3de
@ -199,7 +199,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
|||||||
double accuracyValue = 2.83 * Math.Pow(1.52163, (79.5 - 2 * Math.Sqrt(variance)) / 6.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))
|
if (mods.Any(m => m is OsuModHidden))
|
||||||
accuracyValue *= 1.08;
|
accuracyValue *= 1.08;
|
||||||
if (mods.Any(m => m is OsuModFlashlight))
|
if (mods.Any(m => m is OsuModFlashlight))
|
||||||
|
@ -86,7 +86,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
|||||||
{
|
{
|
||||||
islandSize++; // island is still progressing, count size.
|
islandSize++; // island is still progressing, count size.
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (islandSize > 6)
|
if (islandSize > 6)
|
||||||
@ -152,7 +151,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
|||||||
angleBonus = 1.25;
|
angleBonus = 1.25;
|
||||||
else if (angle < angle_bonus_begin)
|
else if (angle < angle_bonus_begin)
|
||||||
angleBonus = 1 + Math.Pow(Math.Sin(1.5 * (angle_bonus_begin - angle)), 2) / 4;
|
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;
|
return (angleBonus * speedBonus * Math.Pow(distance / single_spacing_threshold, 3.5)) / osuCurrObj.StrainTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user