Write MaxCombo attribute for mania

This commit is contained in:
Dan Balasescu 2022-06-02 19:16:38 +09:00
parent b1ffffc1ac
commit a287fd73bb
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ public class ManiaDifficultyAttributes : DifficultyAttributes
foreach (var v in base.ToDatabaseAttributes())
yield return v;
// Todo: osu!mania doesn't output MaxCombo attribute for some reason.
yield return (ATTRIB_ID_MAX_COMBO, MaxCombo);
yield return (ATTRIB_ID_DIFFICULTY, StarRating);
yield return (ATTRIB_ID_GREAT_HIT_WINDOW, GreatHitWindow);
yield return (ATTRIB_ID_SCORE_MULTIPLIER, ScoreMultiplier);
@ -39,6 +39,7 @@ public override void FromDatabaseAttributes(IReadOnlyDictionary<int, double> val
{
base.FromDatabaseAttributes(values);
MaxCombo = (int)values[ATTRIB_ID_MAX_COMBO];
StarRating = values[ATTRIB_ID_DIFFICULTY];
GreatHitWindow = values[ATTRIB_ID_GREAT_HIT_WINDOW];
ScoreMultiplier = values[ATTRIB_ID_SCORE_MULTIPLIER];