enforce precision for ModDifficultyAdjust and derived classes

This commit is contained in:
Liam DeVoe 2020-03-22 21:22:46 -04:00
parent 63e9b2a299
commit 67667b3d22
3 changed files with 6 additions and 6 deletions

View File

@ -36,8 +36,8 @@ namespace osu.Game.Rulesets.Catch.Mods
{ {
get get
{ {
string circleSize = CircleSize.IsDefault ? string.Empty : $"CS {CircleSize.Value}"; string circleSize = CircleSize.IsDefault ? string.Empty : $"CS {CircleSize.Value:0.#}";
string approachRate = ApproachRate.IsDefault ? string.Empty : $"AR {ApproachRate.Value}"; string approachRate = ApproachRate.IsDefault ? string.Empty : $"AR {ApproachRate.Value:0.#}";
return string.Join(", ", new[] return string.Join(", ", new[]
{ {

View File

@ -36,8 +36,8 @@ namespace osu.Game.Rulesets.Osu.Mods
{ {
get get
{ {
string circleSize = CircleSize.IsDefault ? string.Empty : $"CS {CircleSize.Value}"; string circleSize = CircleSize.IsDefault ? string.Empty : $"CS {CircleSize.Value:0.#}";
string approachRate = ApproachRate.IsDefault ? string.Empty : $"AR {ApproachRate.Value}"; string approachRate = ApproachRate.IsDefault ? string.Empty : $"AR {ApproachRate.Value:0.#}";
return string.Join(", ", new[] return string.Join(", ", new[]
{ {

View File

@ -57,8 +57,8 @@ namespace osu.Game.Rulesets.Mods
{ {
get get
{ {
string drainRate = DrainRate.IsDefault ? string.Empty : $"HP {DrainRate.Value}"; string drainRate = DrainRate.IsDefault ? string.Empty : $"HP {DrainRate.Value:0.#}";
string overallDifficulty = OverallDifficulty.IsDefault ? string.Empty : $"OD {OverallDifficulty.Value}"; string overallDifficulty = OverallDifficulty.IsDefault ? string.Empty : $"OD {OverallDifficulty.Value:0.#}";
return string.Join(", ", new[] return string.Join(", ", new[]
{ {