mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 04:12:56 +08:00
Make rescale
a static method
This commit is contained in:
parent
20a76d832d
commit
e0882d2a53
@ -203,9 +203,10 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
|
||||
/// Applies a final re-scaling of the star rating.
|
||||
/// </summary>
|
||||
/// <param name="sr">The raw star rating value before re-scaling.</param>
|
||||
private double rescale(double sr)
|
||||
private static double rescale(double sr)
|
||||
{
|
||||
if (sr < 0) return sr;
|
||||
if (sr < 0)
|
||||
return sr;
|
||||
|
||||
return 10.43 * Math.Log(sr / 8 + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user