Skip to content

Commit

Permalink
Adjust DifficultyValue curve to avoid lower star rating of osu!taik…
Browse files Browse the repository at this point in the history
…o being too inflated (#31067)

* low sr

* merge two line

* update decimal

* fix formatting

---------

Co-authored-by: StanR <[email protected]>
  • Loading branch information
YaniFR and stanriders authored Dec 18, 2024
1 parent 79a3afe commit 0f2f25d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ protected override PerformanceAttributes CreatePerformanceAttributes(ScoreInfo s

private double computeDifficultyValue(ScoreInfo score, TaikoDifficultyAttributes attributes)
{
double difficultyValue = Math.Pow(5 * Math.Max(1.0, attributes.StarRating / 0.115) - 4.0, 2.25) / 1150.0;
double baseDifficulty = 5 * Math.Max(1.0, attributes.StarRating / 0.115) - 4.0;
double difficultyValue = Math.Min(Math.Pow(baseDifficulty, 3) / 69052.51, Math.Pow(baseDifficulty, 2.25) / 1150.0);

double lengthBonus = 1 + 0.1 * Math.Min(1.0, totalHits / 1500.0);
difficultyValue *= lengthBonus;
Expand Down

0 comments on commit 0f2f25d

Please sign in to comment.