1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-07 23:07:01 +09:00

Fixed CodeFactor issues

This commit is contained in:
Mr. HeliX 2025-03-01 23:29:54 +01:00
parent 1ee62e882d
commit eb82930c17
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ namespace PerformanceCalculator.Simulate
int perfectWeight = mods.Any(m => m is ModClassic) ? 300 : 305;
double total = perfectWeight * countPerfect + 300 * countGreat + 200 * countGood + 100 * countOk + 50 * countMeh;
double total = (perfectWeight * countPerfect) + (300 * countGreat) + (200 * countGood) + (100 * countOk) + (50 * countMeh);
double max = perfectWeight * (countPerfect + countGreat + countGood + countOk + countMeh + countMiss);
return total / max;

View file

@ -328,7 +328,7 @@ namespace PerformanceCalculatorGUI
int perfectWeight = mods.Any(m => m is ModClassic) ? 300 : 305;
double total = perfectWeight * countPerfect + 300 * countGreat + 200 * countGood + 100 * countOk + 50 * countMeh;
double total = (perfectWeight * countPerfect) + (300 * countGreat) + (200 * countGood) + (100 * countOk) + (50 * countMeh);
double max = perfectWeight * (countPerfect + countGreat + countGood + countOk + countMeh + countMiss);
return total / max;