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:
parent
1ee62e882d
commit
eb82930c17
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue