Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Traceable performance calculation support #27148

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ private double computeAimValue(ScoreInfo score, OsuDifficultyAttributes attribut
// We want to give more reward for lower AR when it comes to aim and HD. This nerfs high AR and buffs lower AR.
aimValue *= 1.0 + 0.04 * (12.0 - attributes.ApproachRate);
}
else if (score.Mods.Any(h => h is OsuModTraceable))
{
// The same as HD, placeholder bonus
aimValue *= 1.0 + 0.04 * (12.0 - attributes.ApproachRate);
}

// We assume 15% of sliders in a map are difficult since there's no way to tell from the performance calculator.
double estimateDifficultSliders = attributes.SliderCount * 0.15;
Expand Down Expand Up @@ -167,6 +172,11 @@ private double computeSpeedValue(ScoreInfo score, OsuDifficultyAttributes attrib
// We want to give more reward for lower AR when it comes to aim and HD. This nerfs high AR and buffs lower AR.
speedValue *= 1.0 + 0.04 * (12.0 - attributes.ApproachRate);
}
else if (score.Mods.Any(h => h is OsuModTraceable))
{
// The same as HD, placeholder bonus
speedValue *= 1.0 + 0.04 * (12.0 - attributes.ApproachRate);
}

// Calculate accuracy assuming the worst case scenario
double relevantTotalDiff = totalHits - attributes.SpeedNoteCount;
Expand Down Expand Up @@ -214,6 +224,8 @@ private double computeAccuracyValue(ScoreInfo score, OsuDifficultyAttributes att
accuracyValue *= 1.14;
else if (score.Mods.Any(m => m is OsuModHidden))
accuracyValue *= 1.08;
else if (score.Mods.Any(m => m is OsuModTraceable))
accuracyValue *= 1.08;
Givikap120 marked this conversation as resolved.
Show resolved Hide resolved

if (score.Mods.Any(m => m is OsuModFlashlight))
accuracyValue *= 1.02;
Expand Down
Loading