1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 12:47:24 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/Difficulty/Skills/Stamina.cs

39 lines
1.2 KiB
C#
Raw Normal View History

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;
using osu.Game.Rulesets.Mods;
2022-06-06 12:42:49 +08:00
using osu.Game.Rulesets.Taiko.Difficulty.Evaluators;
2020-05-11 13:50:02 +08:00
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
2020-05-11 13:50:02 +08:00
{
2022-06-06 16:11:26 +08:00
protected override double SkillMultiplier => 1.2;
protected override double StrainDecayBase => 0.4;
2020-05-11 13:50:02 +08:00
/// <summary>
/// Creates a <see cref="Stamina"/> skill.
/// </summary>
/// <param name="mods">Mods for use in skill calculations.</param>
2022-05-10 16:17:40 +08:00
public Stamina(Mod[] mods)
: base(mods)
2020-05-11 13:50:02 +08:00
{
}
2022-05-10 16:17:40 +08:00
protected override double StrainValueOf(DifficultyHitObject current)
2020-08-22 23:51:35 +08:00
{
return StaminaEvaluator.EvaluateDifficultyOf(current);
2020-05-11 13:50:02 +08:00
}
}
}