This commit is contained in:
aozhiwei 2022-11-17 10:06:43 +08:00
parent f7a8f3671a
commit 2e5c79e1e8
3 changed files with 23 additions and 1 deletions

View File

@ -636,6 +636,12 @@ void Human::FillMFPlayerStats(cs::MFPlayerStats* stats_pb)
stats_pb->set_damage_amount(stats.damage_amount_out);
stats_pb->set_heal_amount(stats.heal_amount);
stats_pb->set_assist(stats.assist);
stats_pb->set_rescue(stats.rescue_member);
stats_pb->set_pve_wave(stats.pve_wave);
stats_pb->set_revive(stats.revive);
stats_pb->set_rank_chg(stats.rank_chg);
stats_pb->set_history_time_alive(stats.history_time_alive);
stats_pb->set_history_kills(stats.history_kills);
stats_pb->set_history_damage_amount(stats.history_damage_amount);
@ -1079,6 +1085,7 @@ void Human::FillSMGameOver(cs::SMGameOver& msg)
msg.set_pve_wave(room->pve_data.GetWave() + 1);
msg.set_pve_max_wave(room->pve_data.max_wave);
msg.set_pve_instance_id(room->pve_instance->pb->gemini_id());
msg.set_pve_boss_killed(room->pve_data.boss_state == 2 ? 1 : 0);
}
}
TypeConvert::ToPb(stats.over_reward, msg.mutable_reward());
@ -1262,7 +1269,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string& killer_name, i
BeKill(killer_id, killer_name, weapon_id, real_killer_id, real_killer_name);
SyncAroundPlayers(__FILE__, __LINE__, __func__);
} else {
if (HasNoDownedTeammate()) {
if (HasNoDownedTeammate() && !room->IsPveRoom()) {
SetHP(MetaMgr::Instance()->GetSysParamAsInt("downed_recover_hp"));
downed = true;
if (HasBuffEffect(kBET_Camouflage)) {

View File

@ -66,6 +66,11 @@ struct PlayerStats
int rescue_member = 0;
int rescue_guild_member = 0;
int assist = 0;
int pve_wave = 0;
int revive = 0;
int rank_chg = 0;
int history_time_alive = 0;
int history_kills = 0;
int history_damage_amount = 0;

View File

@ -679,6 +679,11 @@ message MFPlayerStats
optional int32 kills = 4; //
optional int32 damage_amount = 8; //
optional int32 heal_amount = 20; //
optional int32 assist = 50; //
optional int32 rescue = 51; //
optional int32 pve_wave = 52; //pve波次
optional int32 revive = 53; //
optional int32 rank_chg = 54; //
//
optional int32 history_time_alive = 30; //()
optional int32 history_kills = 31; //
@ -1142,6 +1147,8 @@ message SMMapInfo
optional string room_uuid = 9; //id
optional string server_info = 10; //使
optional int32 room_mode = 11; //0: 1: 2:
optional int32 team_mode = 12; // 0: 1:
optional int32 match_mode = 13; // 0: pvp 1:()
}
//
@ -1209,12 +1216,15 @@ message SMGameOver
optional int32 pve_wave = 17; //pve波次
optional int32 pve_max_wave = 18; //pve总波次
optional int32 pve_instance_id = 19; //pve副本id
optional int32 pve_boss_killed = 25; //pve副本boos是否被击杀
optional int32 map_id = 20; //id
optional int32 mode = 21; //1: 2:
optional int32 my_rank = 22; //
optional int32 max_rank = 23; //
optional int32 room_mode = 30; //0: 1: 2:
optional int32 match_mode = 32; // 0: pvp 1:()
}
//