2020-05-11 13:50:02 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2020-05-11 13:50:02 +08:00
|
|
|
|
using osu.Game.Rulesets.Difficulty.Preprocessing;
|
|
|
|
|
using osu.Game.Rulesets.Difficulty.Skills;
|
2021-02-06 12:06:16 +08:00
|
|
|
|
using osu.Game.Rulesets.Mods;
|
2022-06-23 17:10:30 +08:00
|
|
|
|
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing;
|
2020-05-11 13:50:02 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
|
|
|
|
{
|
2020-08-23 01:34:16 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Calculates the colour coefficient of taiko difficulty.
|
|
|
|
|
/// </summary>
|
2021-08-17 06:14:29 +08:00
|
|
|
|
public class Colour : StrainDecaySkill
|
2020-05-11 13:50:02 +08:00
|
|
|
|
{
|
|
|
|
|
protected override double SkillMultiplier => 1;
|
2020-05-22 19:50:21 +08:00
|
|
|
|
protected override double StrainDecayBase => 0.4;
|
2020-05-11 13:50:02 +08:00
|
|
|
|
|
2021-02-06 12:06:16 +08:00
|
|
|
|
public Colour(Mod[] mods)
|
|
|
|
|
: base(mods)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-13 00:35:56 +08:00
|
|
|
|
protected override double StrainValueOf(DifficultyHitObject current)
|
2020-05-22 19:50:21 +08:00
|
|
|
|
{
|
2022-06-23 17:10:30 +08:00
|
|
|
|
TaikoDifficultyHitObjectColour colour = ((TaikoDifficultyHitObject)current).Colour;
|
|
|
|
|
double difficulty = colour == null ? 0 : colour.EvaluatedDifficulty;
|
|
|
|
|
// if (current != null && colour != null)
|
|
|
|
|
// {
|
|
|
|
|
// System.Console.WriteLine($"{current.StartTime},{colour.Delta},{colour.RepetitionInterval},{difficulty}");
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return difficulty;
|
2020-08-19 01:44:41 +08:00
|
|
|
|
}
|
2020-05-11 13:50:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|