From da524cb21fc9f308c75683c834fafe0c5f92c9e8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 29 Apr 2019 20:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97ok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 1ae171d..8602a1b 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -1209,6 +1209,10 @@ void Human::UpdateGameOver() Entity* entity = room->GetEntityByUniId(hum_uniid); if (entity && entity->entity_type == ET_Player) { Human* hum = (Human*)entity; + hum->stats.history_time_alive = data.Get("alive_time_his"); + hum->stats.history_kills = data.Get("kill_his"); + hum->stats.history_damage_amount = data.Get("harm_his"); + hum->stats.history_heal_amount = data.Get("add_HP_his"); cs::SMGameOver msg; hum->FillSMGameOver(msg); hum->SendNotifyMsg(msg); @@ -1372,6 +1376,7 @@ void Human::GenBattleReportData(a8::MutableXObject* params) params->SetVal("rescue_member", stats.rescue_member); { int coin_num = (rank * MetaMgr::Instance()->rank_param) + (stats.kills * MetaMgr::Instance()->kill_param); + stats.gold = coin_num; params->SetVal("coin_num", coin_num); } params->SetVal("score", 0);