mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 05:37:18 +09:00
Fix accuracy calculations.
This commit is contained in:
parent
0acf5b45b1
commit
d87a65f19e
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using osu.Game.Modes.Judgements;
|
using osu.Game.Modes.Judgements;
|
||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
|
using osu.Game.Modes.Objects.Drawables;
|
||||||
|
|
||||||
namespace osu.Game.Modes.Taiko.Judgements
|
namespace osu.Game.Modes.Taiko.Judgements
|
||||||
{
|
{
|
||||||
@ -21,12 +22,12 @@ namespace osu.Game.Modes.Taiko.Judgements
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The result value for the combo portion of the score.
|
/// The result value for the combo portion of the score.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ResultValueForScore => NumericResultForScore(TaikoResult);
|
public int ResultValueForScore => Result == HitResult.Miss ? 0 : NumericResultForScore(TaikoResult);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The result value for the accuracy portion of the score.
|
/// The result value for the accuracy portion of the score.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ResultValueForAccuracy => NumericResultForAccuracy(TaikoResult);
|
public int ResultValueForAccuracy => Result == HitResult.Miss ? 0 : NumericResultForAccuracy(TaikoResult);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum result value for the combo portion of the score.
|
/// The maximum result value for the combo portion of the score.
|
||||||
|
@ -261,7 +261,7 @@ namespace osu.Game.Modes.Taiko.Scoring
|
|||||||
foreach (var j in Judgements)
|
foreach (var j in Judgements)
|
||||||
{
|
{
|
||||||
scoreForAccuracy += j.ResultValueForAccuracy;
|
scoreForAccuracy += j.ResultValueForAccuracy;
|
||||||
maxScoreForAccuracy = j.MaxResultValueForAccuracy;
|
maxScoreForAccuracy += j.MaxResultValueForAccuracy;
|
||||||
}
|
}
|
||||||
|
|
||||||
Accuracy.Value = (double)scoreForAccuracy / maxScoreForAccuracy;
|
Accuracy.Value = (double)scoreForAccuracy / maxScoreForAccuracy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user