mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:18:22 +08:00
Added a minimum value for the scale calculated by the CS value.
This commit is contained in:
parent
9532725eb7
commit
0af32c5d4b
@ -55,7 +55,7 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
|||||||
// It works out to under 1 game pixel and is generally not meaningful to gameplay, but is to replay playback accuracy.
|
// It works out to under 1 game pixel and is generally not meaningful to gameplay, but is to replay playback accuracy.
|
||||||
const float broken_gamefield_rounding_allowance = 1.00041f;
|
const float broken_gamefield_rounding_allowance = 1.00041f;
|
||||||
|
|
||||||
return (float)(1.0f - 0.7f * IBeatmapDifficultyInfo.DifficultyRange(circleSize)) / 2 * (applyFudge ? broken_gamefield_rounding_allowance : 1);
|
return (float)Math.Max(0.02, (1.0f - 0.7f * IBeatmapDifficultyInfo.DifficultyRange(circleSize)) / 2 * (applyFudge ? broken_gamefield_rounding_allowance : 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int CalculateDifficultyPeppyStars(BeatmapDifficulty difficulty, int objectCount, int drainLength)
|
public static int CalculateDifficultyPeppyStars(BeatmapDifficulty difficulty, int objectCount, int drainLength)
|
||||||
|
Loading…
Reference in New Issue
Block a user