1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

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
{
string circleSize = CircleSize.IsDefault ? string.Empty : $"CS {CircleSize.Value}";
string approachRate = ApproachRate.IsDefault ? string.Empty : $"AR {ApproachRate.Value}";
string circleSize = CircleSize.IsDefault ? string.Empty : $"CS {CircleSize.Value:0.#}";
string approachRate = ApproachRate.IsDefault ? string.Empty : $"AR {ApproachRate.Value:0.#}";
return string.Join(", ", new[]
{

View File

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

View File

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