adjusted some values to normalize output

This commit is contained in:
HorizonCode 2021-06-25 20:45:51 +02:00
parent 0e8c52b7c1
commit 1fe30194b0

11
oppai.c
View File

@ -2168,17 +2168,16 @@ int pp_std(ezpp_t ez) {
if (ez->mods & MODS_FL) ez->acc_pp *= 1.02f; if (ez->mods & MODS_FL) ez->acc_pp *= 1.02f;
/* total pp -------------------------------------------------------- */ /* total pp -------------------------------------------------------- */
final_multiplier = 1.4f; final_multiplier = 1.2f;
if (ez->mods & MODS_NF) final_multiplier *= 0.90f; if (ez->mods & MODS_NF) final_multiplier *= 0.90f;
if (ez->mods & MODS_SO) final_multiplier *= 0.95f; if (ez->mods & MODS_SO) final_multiplier *= 0.95f;
ez->pp = (float)( ez->pp = (float)(
pow( pow(
pow(ez->speed_pp, 1.108f) + pow(ez->speed_pp, 0.95f) +
pow(ez->acc_pp, 1.1f), pow(ez->acc_pp, 0.95f),
1.1f / 1.1f 1.19f
) * final_multiplier ) * final_multiplier);
);
ez->accuracy_percent = accuracy * 100.0f; ez->accuracy_percent = accuracy * 100.0f;