top_record is 1-indexed...

This commit is contained in:
Natsu Kagami 2020-08-10 00:06:48 -04:00
parent c6e8bfc43e
commit d57c02ddf5
No known key found for this signature in database
GPG key ID: F17543D4B9424B94

View file

@ -223,7 +223,7 @@ pub(crate) fn score_embed<'a>(
top_record
.map(|top| {
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;
format!(
"**pp gained**: **{:.2}**pp (+**{:.2}**pp | {:.2}pp \\➡️ {:.2}pp)",