Skip to content

Commit

Permalink
Fix ScoreInfo not being constructed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Apr 24, 2024
1 parent b5f4c37 commit c79127b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Difficalcy.Catch/Services/CatchCalculatorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected override CatchPerformance CalculatePerformance(CatchScore score, objec
var statistics = determineHitResults(score.Accuracy ?? 1, hitResultCount, beatmap, score.Misses ?? 0, score.TinyDroplets, score.Droplets);
var accuracy = score.Accuracy ?? calculateAccuracy(statistics);

var scoreInfo = new ScoreInfo()
var scoreInfo = new ScoreInfo(beatmap.BeatmapInfo, CatchRuleset.RulesetInfo)
{
Accuracy = accuracy,
MaxCombo = combo,
Expand Down
2 changes: 1 addition & 1 deletion Difficalcy.Mania/Services/ManiaCalculatorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected override ManiaPerformance CalculatePerformance(ManiaScore score, objec
};
var totalScore = score.TotalScore ?? determineScore(mods);

var scoreInfo = new ScoreInfo()
var scoreInfo = new ScoreInfo(beatmap.BeatmapInfo, ManiaRuleset.RulesetInfo)
{
Accuracy = 0,
MaxCombo = 0,
Expand Down
2 changes: 1 addition & 1 deletion Difficalcy.Osu/Services/OsuCalculatorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected override OsuPerformance CalculatePerformance(OsuScore score, object di
var statistics = determineHitResults(score.Accuracy ?? 1, beatmap.HitObjects.Count, score.Misses ?? 0, score.Mehs, score.Oks);
var accuracy = score.Accuracy ?? calculateAccuracy(statistics);

var scoreInfo = new ScoreInfo()
var scoreInfo = new ScoreInfo(beatmap.BeatmapInfo, OsuRuleset.RulesetInfo)
{
Accuracy = accuracy,
MaxCombo = combo,
Expand Down
2 changes: 1 addition & 1 deletion Difficalcy.Taiko/Services/TaikoCalculatorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected override TaikoPerformance CalculatePerformance(TaikoScore score, objec
var statistics = determineHitResults(score.Accuracy ?? 1, hitResultCount, score.Misses ?? 0, score.Oks);
var accuracy = score.Accuracy ?? calculateAccuracy(statistics);

var scoreInfo = new ScoreInfo()
var scoreInfo = new ScoreInfo(beatmap.BeatmapInfo, TaikoRuleset.RulesetInfo)
{
Accuracy = accuracy,
MaxCombo = combo,
Expand Down

0 comments on commit c79127b

Please sign in to comment.