Skip to content

Commit

Permalink
Geki/katus can be null now
Browse files Browse the repository at this point in the history
  • Loading branch information
stanriders committed Jan 30, 2024
1 parent bce78c9 commit d4878dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion den0bot.Modules.Osu/PpCalculation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public static double CalculatePerformance(Types.V2.Score score, OsuDifficultyAtt
Count300 = score.Statistics.Count300,
Count100 = score.Statistics.Count100,
Count50 = score.Statistics.Count50,
CountMiss = score.Statistics.CountMiss
CountMiss = score.Statistics.CountMiss,
CountGeki = score.Statistics.CountGeki ?? 0,
CountKatu = score.Statistics.CountKatu ?? 0
},
Mods = mods.ToArray()
});
Expand Down
4 changes: 2 additions & 2 deletions den0bot.Modules.Osu/Types/V2/Score.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public class ScoreStatistics
public int Count300 { get; set; }

[JsonProperty("count_geki")]
public int CountGeki { get; set; }
public int? CountGeki { get; set; }

[JsonProperty("count_katu")]
public int CountKatu { get; set; }
public int? CountKatu { get; set; }

[JsonProperty("count_miss")]
public int CountMiss { get; set; }
Expand Down

0 comments on commit d4878dc

Please sign in to comment.