This commit is contained in:
aozhiwei 2019-04-29 20:04:15 +08:00
parent 992141d3d8
commit da524cb21f

View File

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