mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
top_record is 1-indexed...
This commit is contained in:
parent
c6e8bfc43e
commit
d57c02ddf5
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ pub(crate) fn score_embed<'a>(
|
||||||
top_record
|
top_record
|
||||||
.map(|top| {
|
.map(|top| {
|
||||||
let after_pp = u.pp.unwrap();
|
let after_pp = u.pp.unwrap();
|
||||||
let effective_pp = full_pp * (0.95f64).powi(top as i32);
|
let effective_pp = full_pp * (0.95f64).powi(top as i32 - 1);
|
||||||
let before_pp = after_pp - effective_pp;
|
let before_pp = after_pp - effective_pp;
|
||||||
format!(
|
format!(
|
||||||
"**pp gained**: **{:.2}**pp (+**{:.2}**pp | {:.2}pp \\➡️ {:.2}pp)",
|
"**pp gained**: **{:.2}**pp (+**{:.2}**pp | {:.2}pp \\➡️ {:.2}pp)",
|
||||||
|
|
Loading…
Add table
Reference in a new issue