2020-05-11 05:50:02 +00: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-07-15 11:07:01 +00:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2020-05-11 05:50:02 +00:00
|
|
|
|
using osu.Game.Rulesets.Difficulty.Preprocessing;
|
|
|
|
|
using osu.Game.Rulesets.Difficulty.Skills;
|
2021-02-06 04:06:16 +00:00
|
|
|
|
using osu.Game.Rulesets.Mods;
|
2022-07-14 08:29:23 +00:00
|
|
|
|
using osu.Game.Rulesets.Taiko.Difficulty.Preprocessing;
|
2020-05-11 05:50:02 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
|
|
|
|
{
|
2020-08-22 17:34:16 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Calculates the colour coefficient of taiko difficulty.
|
|
|
|
|
/// </summary>
|
2021-08-16 22:14:29 +00:00
|
|
|
|
public class Colour : StrainDecaySkill
|
2020-05-11 05:50:02 +00:00
|
|
|
|
{
|
2022-07-07 08:04:46 +00:00
|
|
|
|
protected override double SkillMultiplier => 0.12;
|
2020-05-11 05:50:02 +00:00
|
|
|
|
|
2022-07-14 08:29:23 +00:00
|
|
|
|
// This is set to decay slower than other skills, due to the fact that only the first note of each Mono/Colour/Coupled
|
|
|
|
|
// encoding having any difficulty values, and we want to allow colour difficulty to be able to build up even on
|
|
|
|
|
// slower maps.
|
|
|
|
|
protected override double StrainDecayBase => 0.8;
|
2022-06-28 02:38:58 +00:00
|
|
|
|
|
2021-02-06 04:06:16 +00:00
|
|
|
|
public Colour(Mod[] mods)
|
|
|
|
|
: base(mods)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-12 16:35:56 +00:00
|
|
|
|
protected override double StrainValueOf(DifficultyHitObject current)
|
2020-05-22 11:50:21 +00:00
|
|
|
|
{
|
2022-07-14 08:29:23 +00:00
|
|
|
|
double difficulty = ((TaikoDifficultyHitObject)current).Colour?.EvaluatedDifficulty ?? 0;
|
2022-07-01 06:27:23 +00:00
|
|
|
|
return difficulty;
|
|
|
|
|
}
|
2020-05-11 05:50:02 +00:00
|
|
|
|
}
|
|
|
|
|
}
|