mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:53:51 +08:00
Remove unnecessary braces
This commit is contained in:
parent
8e8571543d
commit
92cf447180
@ -88,13 +88,10 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
}
|
||||
|
||||
private double opacity(double ms, double preemptTime, bool hidden) {
|
||||
if (hidden) {
|
||||
if (hidden)
|
||||
return Math.Clamp(Math.Min((1 - ms / preemptTime) * 2.5, (ms / preemptTime) * (1.0 / 0.3)), 0.0, 1.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
return Math.Clamp((1.0 - ms / preemptTime) * 1.5, 0.0, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
private double strainDecay(double ms) => Math.Pow(strainDecayBase, ms / 1000);
|
||||
|
Loading…
Reference in New Issue
Block a user