1
This commit is contained in:
parent
783229215f
commit
9cbec34fe7
@ -3276,11 +3276,18 @@ void Human::CalcStats()
|
|||||||
}
|
}
|
||||||
stats->rank = rank;
|
stats->rank = rank;
|
||||||
if (room->IsPveRoom()) {
|
if (room->IsPveRoom()) {
|
||||||
if (stats->pve_kill_boss) {
|
if (room->pve_data.pve_kill_boss) {
|
||||||
stats->victory = true;
|
stats->victory = true;
|
||||||
stats->settlement_color = 1;
|
stats->settlement_color = 1;
|
||||||
GetTeam()->settlement_color = 1;
|
GetTeam()->settlement_color = 1;
|
||||||
GetTeam()->team_rank = 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 {
|
} else {
|
||||||
stats->victory = stats->rank == 1;
|
stats->victory = stats->rank == 1;
|
||||||
|
@ -69,7 +69,9 @@ void PveData::OnBeKill(Hero* hero)
|
|||||||
(
|
(
|
||||||
[] (Human* hum) -> bool
|
[] (Human* hum) -> bool
|
||||||
{
|
{
|
||||||
hum->stats->pve_kill_boss = true;
|
if (!hum->dead) {
|
||||||
|
hum->stats->pve_kill_boss = true;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user