mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 05:19:55 +08:00
Use sliders in acc pp if scorev2 is enabled (#32634)
Co-authored-by: StanR <hi@stanr.info>
This commit is contained in:
committed by
GitHub
Unverified
parent
2aeb80a8bd
commit
4f298760de
@@ -22,6 +22,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
public class OsuPerformanceCalculator : PerformanceCalculator
|
||||
{
|
||||
private bool usingClassicSliderAccuracy;
|
||||
private bool usingScoreV2;
|
||||
|
||||
private double accuracy;
|
||||
private int scoreMaxCombo;
|
||||
@@ -64,6 +65,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
var osuAttributes = (OsuDifficultyAttributes)attributes;
|
||||
|
||||
usingClassicSliderAccuracy = score.Mods.OfType<OsuModClassic>().Any(m => m.NoSliderHeadAccuracy.Value);
|
||||
usingScoreV2 = score.Mods.Any(m => m is ModScoreV2);
|
||||
|
||||
accuracy = score.Accuracy;
|
||||
scoreMaxCombo = score.MaxCombo;
|
||||
@@ -269,7 +271,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
// This percentage only considers HitCircles of any value - in this part of the calculation we focus on hitting the timing hit window.
|
||||
double betterAccuracyPercentage;
|
||||
int amountHitObjectsWithAccuracy = attributes.HitCircleCount;
|
||||
if (!usingClassicSliderAccuracy)
|
||||
if (!usingClassicSliderAccuracy || usingScoreV2)
|
||||
amountHitObjectsWithAccuracy += attributes.SliderCount;
|
||||
|
||||
if (amountHitObjectsWithAccuracy > 0)
|
||||
|
||||
Reference in New Issue
Block a user