Skip to content

Commit

Permalink
trimmed whitespace (CI fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
Givikap120 committed Aug 2, 2024
1 parent 07e3180 commit 0da2a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PerformanceCalculatorGUI/RulesetHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private static Dictionary<HitResult, int> generateOsuHitResults(double accuracy,
relevantAccuracy = Math.Clamp(relevantAccuracy, 0, 1);

// Main curve for accuracy > 25%, the closer accuracy is to 25% - the more 50s it adds
if (relevantAccuracy >= 0.25)
if (relevantAccuracy >= 0.25)
{
// Main curve. Zero 50s if accuracy is 100%, one 50 per 9 100s if accuracy is 75% (excluding misses), 4 50s per 9 100s if accuracy is 50%
double ratio50to100 = Math.Pow(1 - (relevantAccuracy - 0.25) / 0.75, 2);

Check failure on line 144 in PerformanceCalculatorGUI/RulesetHelper.cs

View workflow job for this annotation

GitHub Actions / Code Quality

Name 'ratio50to100' does not match rule 'Local variables'. Suggested name is 'ratio50To100'. in PerformanceCalculatorGUI\RulesetHelper.cs on line 144
Expand All @@ -156,7 +156,7 @@ private static Dictionary<HitResult, int> generateOsuHitResults(double accuracy,
countMeh = (int?)(Math.Round(count100estimate + count50estimate) - countGood);
}
// If accuracy is between 16.67% and 25% - we assume that we have no 300s
else if (relevantAccuracy >= 1.0 / 6)
else if (relevantAccuracy >= 1.0 / 6)
{
// Derived from the formula: Accuracy = (6 * c300 + 2 * c100 + c50) / (6 * totalHits), assuming that c300 = 0
double count100estimate = 6 * relevantResultCount * relevantAccuracy - relevantResultCount;

Check failure on line 162 in PerformanceCalculatorGUI/RulesetHelper.cs

View workflow job for this annotation

GitHub Actions / Code Quality

Name 'count100estimate' does not match rule 'Local variables'. Suggested name is 'count100Estimate'. in PerformanceCalculatorGUI\RulesetHelper.cs on line 162
Expand Down

0 comments on commit 0da2a18

Please sign in to comment.