1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:02:55 +08:00

Fix incorrect note count probabilities.

This commit is contained in:
smoogipooo 2017-05-18 12:39:51 +09:00
parent e9275138e1
commit f6dc85c2f8

View File

@ -60,7 +60,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
/// <param name="p5">Probability for 5 notes to be generated.</param>
/// <param name="p6">Probability for 6 notes to be generated.</param>
/// <returns>The amount of notes to be generated.</returns>
protected int GetRandomNoteCount(double p2, double p3, double p4 = 1, double p5 = 1, double p6 = 1)
protected int GetRandomNoteCount(double p2, double p3, double p4 = 0, double p5 = 0, double p6 = 0)
{
double val = Random.NextDouble();
if (val >= 1 - p6)