1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 01:00:27 +08:00

Merge pull request #25808 from smoogipoo/fix-scoring-attribs-maxcombo

Populate MaxCombo scoring attrib for non-osu rulesets
This commit is contained in:
Dean Herbert
2023-12-18 12:25:06 +09:00
committed by GitHub
Unverified
3 changed files with 7 additions and 1 deletions
@@ -75,6 +75,7 @@ namespace osu.Game.Rulesets.Catch.Difficulty
attributes.BonusScoreRatio = legacyBonusScore == 0 ? 0 : (double)standardisedBonusScore / legacyBonusScore;
attributes.BonusScore = legacyBonusScore;
attributes.MaxCombo = combo;
return attributes;
}
@@ -15,7 +15,11 @@ namespace osu.Game.Rulesets.Mania.Difficulty
{
public LegacyScoreAttributes Simulate(IWorkingBeatmap workingBeatmap, IBeatmap playableBeatmap)
{
return new LegacyScoreAttributes { ComboScore = 1000000 };
return new LegacyScoreAttributes
{
ComboScore = 1000000,
MaxCombo = 0 // Max combo is mod-dependent, so any value here is insufficient.
};
}
public double GetLegacyScoreMultiplier(IReadOnlyList<Mod> mods, LegacyBeatmapConversionDifficultyInfo difficulty)
@@ -76,6 +76,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
attributes.BonusScoreRatio = legacyBonusScore == 0 ? 0 : (double)standardisedBonusScore / legacyBonusScore;
attributes.BonusScore = legacyBonusScore;
attributes.MaxCombo = combo;
return attributes;
}