1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 07:47:23 +08:00

Use consistent decimal places in BeatmapAttributeText

This commit is contained in:
Cadence Ember 2024-11-21 14:04:42 +13:00 committed by GitHub
parent 2c0140f865
commit 37394a5027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -211,19 +211,19 @@ namespace osu.Game.Skinning.Components
return beatmap.Value.BeatmapInfo.Status.GetLocalisableDescription();
case BeatmapAttribute.BPM:
return FormatUtils.RoundBPM(beatmap.Value.BeatmapInfo.BPM, ModUtils.CalculateRateWithMods(mods.Value)).ToLocalisableString(@"F2");
return FormatUtils.RoundBPM(beatmap.Value.BeatmapInfo.BPM, ModUtils.CalculateRateWithMods(mods.Value)).ToLocalisableString(@"0.##");
case BeatmapAttribute.CircleSize:
return computeDifficulty().CircleSize.ToLocalisableString(@"F2");
return computeDifficulty().CircleSize.ToLocalisableString(@"0.##");
case BeatmapAttribute.HPDrain:
return computeDifficulty().DrainRate.ToLocalisableString(@"F2");
return computeDifficulty().DrainRate.ToLocalisableString(@"0.##");
case BeatmapAttribute.Accuracy:
return computeDifficulty().OverallDifficulty.ToLocalisableString(@"F2");
return computeDifficulty().OverallDifficulty.ToLocalisableString(@"0.##");
case BeatmapAttribute.ApproachRate:
return computeDifficulty().ApproachRate.ToLocalisableString(@"F2");
return computeDifficulty().ApproachRate.ToLocalisableString(@"0.##");
case BeatmapAttribute.StarRating:
return (starDifficulty?.Stars ?? 0).ToLocalisableString(@"F2");