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

Review feedback RulesetHelper

This commit is contained in:
Mr. HeliX 2025-02-26 18:05:42 +01:00
parent 4ef51a1b09
commit 1ee62e882d

View file

@ -229,7 +229,7 @@ namespace PerformanceCalculatorGUI
private static Dictionary<HitResult, int> generateManiaHitResults(double accuracy, IBeatmap beatmap, Mod[] mods, int countMiss)
{
int totalResultCount = beatmap.HitObjects.Count;
if (!mods.Any(m => m.Acronym == "CL"))
if (!mods.Any(m => m is ModClassic))
totalResultCount += beatmap.HitObjects.Count(ho => ho is HoldNote);
// Let Great=6, Good=2, Meh=1, Miss=0. The total should be this.
@ -326,7 +326,7 @@ namespace PerformanceCalculatorGUI
int countMeh = statistics[HitResult.Meh];
int countMiss = statistics[HitResult.Miss];
int perfectWeight = mods.Any(m => m.Acronym == "CL") ? 300 : 305;
int perfectWeight = mods.Any(m => m is ModClassic) ? 300 : 305;
double total = perfectWeight * countPerfect + 300 * countGreat + 200 * countGood + 100 * countOk + 50 * countMeh;
double max = perfectWeight * (countPerfect + countGreat + countGood + countOk + countMeh + countMiss);