1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 01:46:05 +08:00

rename withTapping to withoutFlow to be more accurate

This commit is contained in:
finadoggie 2025-01-16 22:40:37 -08:00
parent 65e6ae0278
commit 6c42460ea9
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -153,8 +153,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty
{
new Aim(mods, true),
new Aim(mods, false),
new Speed(mods, true),
new Speed(mods, false),
new Speed(mods, true),
};
if (mods.Any(h => h is OsuModFlashlight))

View File

@ -23,13 +23,13 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
protected override int ReducedSectionCount => 5;
public Speed(Mod[] mods, bool withTapping)
public Speed(Mod[] mods, bool withoutFlow)
: base(mods)
{
this.withTapping = withTapping;
this.withoutFlow = withoutFlow;
}
private readonly bool withTapping;
private readonly bool withoutFlow;
private double strainDecay(double ms) => Math.Pow(strainDecayBase, ms / 1000);
@ -38,9 +38,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
protected override double StrainValueAt(DifficultyHitObject current)
{
currentStrain *= strainDecay(((OsuDifficultyHitObject)current).StrainTime);
currentStrain += SpeedEvaluator.EvaluateDifficultyOf(current, withTapping, Mods) * skillMultiplier;
currentStrain += SpeedEvaluator.EvaluateDifficultyOf(current, withoutFlow, Mods) * skillMultiplier;
if (!withTapping) return currentStrain;
if (withoutFlow) return currentStrain;
currentRhythm = RhythmEvaluator.EvaluateDifficultyOf(current);