This commit is contained in:
aozhiwei 2020-11-19 19:15:06 +08:00
parent c9b30c083f
commit 3dc8f369ba
2 changed files with 5 additions and 0 deletions

View File

@ -1839,6 +1839,9 @@ void Human::UpdateAction()
hum->downed_timer = nullptr; hum->downed_timer = nullptr;
} }
++hum->stats.rescue_member; ++hum->stats.rescue_member;
if (hum->guild_id != 0 && hum->guild_id == guild_id) {
++hum->stats.rescue_guild_member;
}
} }
hum->SyncAroundPlayers(__FILE__, __LINE__, __func__); hum->SyncAroundPlayers(__FILE__, __LINE__, __func__);
} }
@ -2331,6 +2334,7 @@ void Human::GenBattleReportData(a8::MutableXObject* params)
params->SetVal("submachine_kill", submachine_kill); params->SetVal("submachine_kill", submachine_kill);
params->SetVal("rescue_member", stats.rescue_member); params->SetVal("rescue_member", stats.rescue_member);
params->SetVal("rescue_guild_member", stats.rescue_guild_member);
{ {
float rank_param = MetaMgr::Instance()->GetRankRewardParam(rank); float rank_param = MetaMgr::Instance()->GetRankRewardParam(rank);
float kill_param = MetaMgr::Instance()->GetKillRewardParam(stats.kills); float kill_param = MetaMgr::Instance()->GetKillRewardParam(stats.kills);

View File

@ -67,6 +67,7 @@ struct PlayerStats
int damage_amount_out = 0; int damage_amount_out = 0;
int heal_amount = 0; int heal_amount = 0;
int rescue_member = 0; int rescue_member = 0;
int rescue_guild_member = 0;
int history_time_alive = 0; int history_time_alive = 0;
int history_kills = 0; int history_kills = 0;