1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 20:17:51 +08:00

Show bpm and length inclusive of mods

This commit is contained in:
Dan Balasescu 2024-10-17 17:32:32 +09:00
parent 400142545d
commit 9ea15a3961
No known key found for this signature in database

View File

@ -181,13 +181,13 @@ namespace osu.Game.Skinning.Components
return beatmap.Value.BeatmapInfo.Metadata.Source; return beatmap.Value.BeatmapInfo.Metadata.Source;
case BeatmapAttribute.Length: case BeatmapAttribute.Length:
return TimeSpan.FromMilliseconds(beatmap.Value.BeatmapInfo.Length).ToFormattedDuration(); return Math.Round(beatmap.Value.BeatmapInfo.Length / ModUtils.CalculateRateWithMods(mods.Value)).ToFormattedDuration();
case BeatmapAttribute.RankedStatus: case BeatmapAttribute.RankedStatus:
return beatmap.Value.BeatmapInfo.Status.GetLocalisableDescription(); return beatmap.Value.BeatmapInfo.Status.GetLocalisableDescription();
case BeatmapAttribute.BPM: case BeatmapAttribute.BPM:
return beatmap.Value.BeatmapInfo.BPM.ToLocalisableString(@"F2"); return FormatUtils.RoundBPM(beatmap.Value.BeatmapInfo.BPM, ModUtils.CalculateRateWithMods(mods.Value)).ToLocalisableString(@"F2");
case BeatmapAttribute.CircleSize: case BeatmapAttribute.CircleSize:
return computeDifficulty().CircleSize.ToLocalisableString(@"F2"); return computeDifficulty().CircleSize.ToLocalisableString(@"F2");