mirror of
https://github.com/ppy/osu
synced 2024-12-19 13:21:45 +00:00
changed function names to be consistent
This commit is contained in:
parent
6d134b2a83
commit
bc3ae4c4f8
@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
private double skillMultiplier => 26.25;
|
||||
private double strainDecayBase => 0.15;
|
||||
|
||||
private double aimStrainOf(DifficultyHitObject current)
|
||||
private double strainValueOf(DifficultyHitObject current)
|
||||
{
|
||||
if (current.BaseObject is Spinner)
|
||||
return 0;
|
||||
@ -69,10 +69,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
|
||||
protected override double StrainValueAt(DifficultyHitObject current)
|
||||
{
|
||||
double aimStrain = aimStrainOf(current);
|
||||
|
||||
currentStrain *= strainDecay(current.DeltaTime);
|
||||
currentStrain += aimStrain * skillMultiplier;
|
||||
currentStrain += strainValueOf(current) * skillMultiplier;
|
||||
|
||||
return currentStrain;
|
||||
}
|
||||
|
@ -70,10 +70,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
|
||||
protected override double StrainValueAt(DifficultyHitObject current)
|
||||
{
|
||||
double flashlightStrain = strainValueOf(current);
|
||||
|
||||
currentStrain *= strainDecay(current.DeltaTime);
|
||||
currentStrain += flashlightStrain * skillMultiplier;
|
||||
currentStrain += strainValueOf(current) * skillMultiplier;
|
||||
|
||||
return currentStrain;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user