This commit is contained in:
aozhiwei 2024-08-21 21:53:50 +08:00
parent f1aae7a733
commit 332f84648b

View File

@ -4239,8 +4239,9 @@ void Room::CalcMvp()
} }
#ifdef MYDEBUG #ifdef MYDEBUG
if (hum->IsPlayer()) { if (hum->IsPlayer()) {
a8::XPrintf("kill_sco:%f assist_sco:%f damage_sco:%f recover_sco:%f alive_sco:%f" a8::XPrintf("kill_sco:%f assist_sco:%f damage_sco:%f recover_sco:%f alive_sco:%f "
"assist:%f max_assist:%f damage:%f max_damage:%f recover:%f max_recover:%f\n", "assist:%f max_assist:%f damage:%f max_damage:%f recover:%f max_recover:%f "
"level:%d max_level:%d""\n",
{ {
kill_sco, kill_sco,
assist_sco, assist_sco,
@ -4253,6 +4254,8 @@ void Room::CalcMvp()
max_damage, max_damage,
hum->stats->heal_amount, hum->stats->heal_amount,
max_recover, max_recover,
hum->GetHeroLevel(),
max_level
}); });
} }
#endif #endif
@ -4276,6 +4279,14 @@ void Room::CalcMvp()
} }
battle_score = std::round((kill_sco + assist_sco + damage_sco + recover_sco + alive_sco) * 100.0f) / 100.0f; battle_score = std::round((kill_sco + assist_sco + damage_sco + recover_sco + alive_sco) * 100.0f) / 100.0f;
} }
#ifdef MYDEBUG
if (hum->IsPlayer()) {
a8::XPrintf("battle_score:%f\n",
{
battle_score
});
}
#endif
hum->stats->battle_score = battle_score; hum->stats->battle_score = battle_score;
return true; return true;
}); });