1
This commit is contained in:
parent
55c2e8bc79
commit
7f67438290
@ -3332,6 +3332,9 @@ void Human::CalcStats()
|
||||
return true;
|
||||
});
|
||||
}
|
||||
if (stats->victory) {
|
||||
room->SetVictoryTeam(GetTeam());
|
||||
}
|
||||
}
|
||||
|
||||
void Human::ProcLoveItem(AddItemDTO& dto)
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user