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);