Skip to content

Commit

Permalink
Merge pull request #31103 from Joehuu/update-taiko-recommended-diff
Browse files Browse the repository at this point in the history
Update recommended difficulty for osu!taiko
  • Loading branch information
smoogipoo authored Dec 13, 2024
2 parents 88241d5 + 38b3d5f commit ae10301
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions osu.Game/Beatmaps/DifficultyRecommender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ protected override void LoadComplete()

private void updateMapping(RulesetInfo ruleset, UserStatistics statistics)
{
// algorithm taken from https://github.com/ppy/osu-web/blob/e6e2825516449e3d0f3f5e1852c6bdd3428c3437/app/Models/User.php#L1505
recommendedDifficultyMapping[ruleset.ShortName] = Math.Pow((double)(statistics.PP ?? 0), 0.4) * 0.195;
// algorithm taken from https://github.com/ppy/osu-web/blob/027026fccc91525e39cee5d2f369f1b343eb1bf1/app/Models/UserStatistics/Model.php#L93-L94
recommendedDifficultyMapping[ruleset.ShortName] =
ruleset.ShortName == @"taiko"
? Math.Pow((double)(statistics.PP ?? 0), 0.35) * 0.27
: Math.Pow((double)(statistics.PP ?? 0), 0.4) * 0.195;
}

/// <summary>
Expand Down

0 comments on commit ae10301

Please sign in to comment.