This commit is contained in:
aozhiwei 2023-04-06 17:15:32 +08:00
parent 783229215f
commit 9cbec34fe7
2 changed files with 11 additions and 2 deletions

View File

@ -3276,11 +3276,18 @@ void Human::CalcStats()
}
stats->rank = rank;
if (room->IsPveRoom()) {
if (stats->pve_kill_boss) {
if (room->pve_data.pve_kill_boss) {
stats->victory = true;
stats->settlement_color = 1;
GetTeam()->settlement_color = 1;
GetTeam()->team_rank = 1;
} else {
if (GetTeam()->GetAliveNum() <= 0) {
stats->victory = false;
stats->settlement_color = 0;
GetTeam()->settlement_color = 0;
GetTeam()->team_rank = 1;
}
}
} else {
stats->victory = stats->rank == 1;

View File

@ -69,7 +69,9 @@ void PveData::OnBeKill(Hero* hero)
(
[] (Human* hum) -> bool
{
hum->stats->pve_kill_boss = true;
if (!hum->dead) {
hum->stats->pve_kill_boss = true;
}
return true;
}
);