mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-21 01:38:55 +00:00
'JSformat' the bpm float
This commit is contained in:
parent
84e192b050
commit
939937a996
1 changed files with 2 additions and 1 deletions
|
@ -131,6 +131,7 @@ impl Difficulty {
|
|||
_ => true,
|
||||
};
|
||||
let three_lines = is_not_ranked;
|
||||
let bpm = (self.bpm * 100.0).round() / 100.0;
|
||||
MessageBuilder::new()
|
||||
.push(format!(
|
||||
"[[Link]]({}) (`{}`)",
|
||||
|
@ -161,7 +162,7 @@ impl Difficulty {
|
|||
.push_bold(format!("{:.1}", self.od))
|
||||
.push(", HP")
|
||||
.push_bold(format!("{:.1}", self.hp))
|
||||
.push(format!(", BPM**{}**", self.bpm))
|
||||
.push(format!(", BPM**{}**", bpm))
|
||||
.push(", ⌛ ")
|
||||
.push_bold(format!("{}", YoumuDuration(self.drain_length)))
|
||||
.build()
|
||||
|
|
Loading…
Add table
Reference in a new issue