mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 01:47:24 +08:00
21 lines
805 B
C#
21 lines
805 B
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.
|
|
|
|
using System;
|
|
using osu.Game.Rulesets.Osu.Difficulty.Preprocessing;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
|
{
|
|
/// <summary>
|
|
/// Represents the skill required to correctly aim at every object in the map with a uniform CircleSize and normalized distances.
|
|
/// </summary>
|
|
public class Aim : Skill
|
|
{
|
|
protected override double SkillMultiplier => 26.25;
|
|
protected override double StrainDecayBase => 0.15;
|
|
|
|
protected override double StrainValueOf(OsuDifficultyHitObject current)
|
|
=> (Math.Pow(current.TravelDistance, 0.99) + Math.Pow(current.JumpDistance, 0.99)) / current.StrainTime;
|
|
}
|
|
}
|