mirror of https://github.com/ppy/osu
Populate MaxCombo scoring attrib for non-osu rulesets
This commit is contained in:
parent
deef7dae1d
commit
30116512ca
|
@ -75,6 +75,7 @@ public LegacyScoreAttributes Simulate(IWorkingBeatmap workingBeatmap, IBeatmap p
|
|||
|
||||
attributes.BonusScoreRatio = legacyBonusScore == 0 ? 0 : (double)standardisedBonusScore / legacyBonusScore;
|
||||
attributes.BonusScore = legacyBonusScore;
|
||||
attributes.MaxCombo = combo;
|
||||
|
||||
return attributes;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,11 @@ internal class ManiaLegacyScoreSimulator : ILegacyScoreSimulator
|
|||
{
|
||||
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 @@ public LegacyScoreAttributes Simulate(IWorkingBeatmap workingBeatmap, IBeatmap p
|
|||
|
||||
attributes.BonusScoreRatio = legacyBonusScore == 0 ? 0 : (double)standardisedBonusScore / legacyBonusScore;
|
||||
attributes.BonusScore = legacyBonusScore;
|
||||
attributes.MaxCombo = combo;
|
||||
|
||||
return attributes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue