Skip to content

Commit

Permalink
Further balance values
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo-dw committed Aug 9, 2023
1 parent c171274 commit 07df5d9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static double EvaluateDifficultyOf(DifficultyHitObject current, bool hidd
pastObjectDifficultyInfluence += loopDifficulty;
}

double noteDensityDifficulty = Math.Pow(3 * Math.Log(Math.Max(1, pastObjectDifficultyInfluence - 1)), 2.3);
double noteDensityDifficulty = Math.Pow(4 * Math.Log(Math.Max(1, pastObjectDifficultyInfluence - 3)), 2.3);

double hiddenDifficulty = 0;

Expand All @@ -50,10 +50,10 @@ public static double EvaluateDifficultyOf(DifficultyHitObject current, bool hidd
double timeSpentInvisible = getDurationSpentInvisible(currObj) / clockRateEstimate;
double timeDifficultyFactor = 1000 / pastObjectDifficultyInfluence;

double visibleObjectFactor = Math.Clamp(retrieveCurrentVisibleObjects(currObj).Count - 3, 1, 10);
double visibleObjectFactor = Math.Clamp(retrieveCurrentVisibleObjects(currObj).Count - 2, 0, 15);

hiddenDifficulty += Math.Pow(visibleObjectFactor * timeSpentInvisible / timeDifficultyFactor, 1) +
visibleObjectFactor * 4 * currVelocity;
(8 + visibleObjectFactor) * currVelocity;
}

double difficulty = hiddenDifficulty + noteDensityDifficulty;
Expand Down

0 comments on commit 07df5d9

Please sign in to comment.