mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 02:32:55 +08:00
Add {ScoreInfo,UserStatistics}.Accuracy
This commit is contained in:
parent
76ba0b833e
commit
257b4052e8
@ -31,6 +31,9 @@ namespace osu.Game.Scoring
|
|||||||
[Column(TypeName = "DECIMAL(1,4)")]
|
[Column(TypeName = "DECIMAL(1,4)")]
|
||||||
public double Accuracy { get; set; }
|
public double Accuracy { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public string DisplayAccuracy => Accuracy == 1 ? "100%" : $"{Accuracy:P2}";
|
||||||
|
|
||||||
[JsonProperty(@"pp")]
|
[JsonProperty(@"pp")]
|
||||||
public double? PP { get; set; }
|
public double? PP { get; set; }
|
||||||
|
|
||||||
|
@ -43,6 +43,9 @@ namespace osu.Game.Users
|
|||||||
[JsonProperty(@"hit_accuracy")]
|
[JsonProperty(@"hit_accuracy")]
|
||||||
public decimal Accuracy;
|
public decimal Accuracy;
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public string DisplayAccuracy => $"{Accuracy:P2}";
|
||||||
|
|
||||||
[JsonProperty(@"play_count")]
|
[JsonProperty(@"play_count")]
|
||||||
public int PlayCount;
|
public int PlayCount;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user