mirror of
https://github.com/ppy/osu.git
synced 2024-12-23 20:52:55 +08:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Game.Rulesets.Difficulty.Preprocessing;
|
|
using osu.Game.Rulesets.Difficulty.Skills;
|
|
using osu.Game.Rulesets.Mods;
|
|
using osu.Game.Rulesets.Taiko.Difficulty.Evaluators;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
|
|
{
|
|
/// <summary>
|
|
/// Calculates the stamina coefficient of taiko difficulty.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The reference play style chosen uses two hands, with full alternating (the hand changes after every hit).
|
|
/// </remarks>
|
|
public class Stamina : StrainDecaySkill
|
|
{
|
|
protected override double SkillMultiplier => 1.1;
|
|
protected override double StrainDecayBase => 0.4;
|
|
|
|
/// <summary>
|
|
/// Creates a <see cref="Stamina"/> skill.
|
|
/// </summary>
|
|
/// <param name="mods">Mods for use in skill calculations.</param>
|
|
public Stamina(Mod[] mods)
|
|
: base(mods)
|
|
{
|
|
}
|
|
|
|
protected override double StrainValueOf(DifficultyHitObject current)
|
|
{
|
|
return StaminaEvaluator.EvaluateDifficultyOf(current);
|
|
}
|
|
}
|
|
}
|