This commit is contained in:
aozhiwei 2024-04-02 17:41:20 +08:00
parent 0e223cb263
commit 26c8190ece
3 changed files with 7 additions and 0 deletions

View File

@ -3874,3 +3874,8 @@ void Room::MobaBatterysUpdate()
#endif #endif
} }
} }
int Room::GetReportMapMode()
{
return 1;
}

View File

@ -299,6 +299,7 @@ public:
void SendSMTeamFull(Human* hum); void SendSMTeamFull(Human* hum);
void OnTeamPartChg(Human* hum); void OnTeamPartChg(Human* hum);
bool IsAlreadyRoomReportBattle() { return already_room_report_battle_; } bool IsAlreadyRoomReportBattle() { return already_room_report_battle_; }
int GetReportMapMode();
std::shared_ptr<InGameVoice> GetInGameVoice() { return ingame_voice_; } std::shared_ptr<InGameVoice> GetInGameVoice() { return ingame_voice_; }

View File

@ -279,6 +279,7 @@ void Team::GenBattleReportData(Human* player, a8::MutableXObject* params)
params->SetVal("room_mode", room->GetReportRoomMode()); params->SetVal("room_mode", room->GetReportRoomMode());
params->SetVal("team_id", GetTeamId()); params->SetVal("team_id", GetTeamId());
params->SetVal("team_mode", 1); params->SetVal("team_mode", 1);
params->SetVal("map_mode", room->GetReportMapMode());
params->SetVal("map_id", room->GetMapMeta()->map_id()); params->SetVal("map_id", room->GetMapMeta()->map_id());
if (room->IsPveRoom()) { if (room->IsPveRoom()) {
params->SetVal("victory", room->pve_data.pve_kill_boss == 1 ? 1 : 0); params->SetVal("victory", room->pve_data.pve_kill_boss == 1 ? 1 : 0);