mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-20 17:28:54 +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,
|
_ => true,
|
||||||
};
|
};
|
||||||
let three_lines = is_not_ranked;
|
let three_lines = is_not_ranked;
|
||||||
|
let bpm = (self.bpm * 100.0).round() / 100.0;
|
||||||
MessageBuilder::new()
|
MessageBuilder::new()
|
||||||
.push(format!(
|
.push(format!(
|
||||||
"[[Link]]({}) (`{}`)",
|
"[[Link]]({}) (`{}`)",
|
||||||
|
@ -161,7 +162,7 @@ impl Difficulty {
|
||||||
.push_bold(format!("{:.1}", self.od))
|
.push_bold(format!("{:.1}", self.od))
|
||||||
.push(", HP")
|
.push(", HP")
|
||||||
.push_bold(format!("{:.1}", self.hp))
|
.push_bold(format!("{:.1}", self.hp))
|
||||||
.push(format!(", BPM**{}**", self.bpm))
|
.push(format!(", BPM**{}**", bpm))
|
||||||
.push(", ⌛ ")
|
.push(", ⌛ ")
|
||||||
.push_bold(format!("{}", YoumuDuration(self.drain_length)))
|
.push_bold(format!("{}", YoumuDuration(self.drain_length)))
|
||||||
.build()
|
.build()
|
||||||
|
|
Loading…
Add table
Reference in a new issue