mirror of
https://github.com/ppy/osu.git
synced 2026-05-29 07:29:53 +08:00
Make rescale a static method
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user