Add {ScoreInfo,UserStatistics}.Accuracy

This commit is contained in:
recapitalverb
2020-02-03 22:09:07 +07:00
parent 76ba0b833e
commit 257b4052e8
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,9 @@ namespace osu.Game.Scoring
[Column(TypeName = "DECIMAL(1,4)")]
public double Accuracy { get; set; }
[JsonIgnore]
public string DisplayAccuracy => Accuracy == 1 ? "100%" : $"{Accuracy:P2}";
[JsonProperty(@"pp")]
public double? PP { get; set; }