Update with latest changes

This commit is contained in:
smoogipoo 2020-05-24 11:48:56 +09:00
parent 9461097b00
commit 5852a37eb7
2 changed files with 4 additions and 2 deletions

View File

@ -49,7 +49,6 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
// Penalty for notes so slow that alting is not necessary.
private double speedPenalty(double noteLengthMS)
{
if (noteLengthMS < 80) return 1;
// return Math.Max(0, 1.4 - 0.005 * noteLengthMS);
if (noteLengthMS < 210) return Math.Max(0, 1.4 - 0.005 * noteLengthMS);

View File

@ -31,6 +31,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
private double simpleColourPenalty(double staminaDifficulty, double colorDifficulty)
{
if (colorDifficulty <= 0) return 0.79 - 0.25;
return 0.79 - Math.Atan(staminaDifficulty / colorDifficulty - 12) / Math.PI / 2;
}
@ -123,6 +124,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
for (int i = 2; i < beatmap.HitObjects.Count; i++)
{
// Check for negative durations
if (beatmap.HitObjects[i].StartTime > beatmap.HitObjects[i - 1].StartTime && beatmap.HitObjects[i - 1].StartTime > beatmap.HitObjects[i - 2].StartTime)
taikoDifficultyHitObjects.Add(new TaikoDifficultyHitObject(beatmap.HitObjects[i], beatmap.HitObjects[i - 1], beatmap.HitObjects[i - 2], clockRate, rhythm));
}