This commit is contained in:
aozhiwei 2024-04-23 15:55:19 +08:00
parent 6caa0b826f
commit 909f9804ea

View File

@ -4065,6 +4065,12 @@ void Room::CalcMvp()
[this, &max_kill, &max_assist, &max_damage, &max_recover, &max_level, &max_alive]
(Human* hum) mutable -> bool
{
max_kill += hum->stats->kills;
max_assist += hum->stats->assist;
max_damage += hum->stats->damage_amount_out;
max_recover += hum->stats->heal_amount;
max_level += hum->GetHeroLevel();
max_alive += hum->stats->alive_time / 1000;
return true;
});
@ -4097,7 +4103,7 @@ void Room::CalcMvp()
float recover_sco = 0.0f;
{
if (max_recover > 0) {
float recover = hum->stats->damage_amount_out;
float recover = hum->stats->heal_amount;
recover_sco = (param1 - param0) / (max_recover - 0) * (recover - 0) + param0;
}
}