2018-04-13 17:19:50 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2018-12-18 08:38:02 +08:00
|
|
|
|
using System;
|
2018-05-15 16:36:29 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu.Difficulty.Preprocessing;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-05-15 16:36:29 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents the skill required to press keys with regards to keeping up with the speed at which objects need to be hit.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Speed : Skill
|
|
|
|
|
{
|
|
|
|
|
protected override double SkillMultiplier => 1400;
|
|
|
|
|
protected override double StrainDecayBase => 0.3;
|
|
|
|
|
|
|
|
|
|
protected override double StrainValueOf(OsuDifficultyHitObject current)
|
|
|
|
|
{
|
2018-10-08 16:37:33 +08:00
|
|
|
|
double distance = current.TravelDistance + current.JumpDistance;
|
2018-12-18 08:49:54 +08:00
|
|
|
|
return (0.95 + Math.Pow(distance / SINGLE_SPACING_THRESHOLD, 4)) / current.StrainTime;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|