This commit is contained in:
aozhiwei 2023-04-05 20:36:16 +08:00
parent 55c2e8bc79
commit 7f67438290
2 changed files with 15 additions and 0 deletions

View File

@ -3332,6 +3332,9 @@ void Human::CalcStats()
return true;
});
}
if (stats->victory) {
room->SetVictoryTeam(GetTeam());
}
}
void Human::ProcLoveItem(AddItemDTO& dto)

View File

@ -870,6 +870,18 @@ void Human::FillMFTeamData(Human* hum, cs::MFTeamData* team_data, bool is_game_o
void Human::FillSMGameOver(cs::SMGameOver& msg)
{
if (room->GetVictoryTeam()) {
room->GetVictoryTeam()->TraverseMembers
(
[this, &msg] (Human* hum)
{
auto p = msg.add_victory_team();
cs::MFObjectFull full_msg;
hum->FillMFObjectFull(this->room, this, &full_msg);
*p = full_msg.union_obj_1();
return true;
});
}
if (GetTeam()->already_report_battle) {
msg.mutable_settlement_new()->set_settlement_status(1);
auto p = msg.mutable_settlement_new();