This commit is contained in:
aozhiwei 2022-12-25 13:03:22 +08:00
parent 8ecb8439dc
commit f8fdce315c

View File

@ -465,22 +465,19 @@ void BattleDataContext::CalcBattleStat(struct PlayerStats* stats)
const mt::Hero* hero_meta = mt::Hero::GetById(hero_id);
const mt::HeroQuality* quality_meta = mt::HeroQuality::GetById(quality);
// 222
#if 0
stats->pb_hero_stats.set_hero_uniid(a8::XValue(hero_ability_->hero_uniid_).GetString());
stats->pb_hero_stats.set_hero_id(hero_id);
stats->pb_hero_stats.set_hero_name(hero_meta ? hero_meta->name() : "");
stats->pb_hero_stats.hero_uniid = a8::XValue(hero_ability_->hero_uniid_).GetString();
stats->pb_hero_stats.hero_id = hero_id;
stats->pb_hero_stats.hero_name = hero_meta ? hero_meta->name() : "";
if (quality_meta) {
int up_limit = quality_meta->GetPvpCegUpLimit();
int ceg = CalcHeroPvpCeg(up_limit, stats);
int new_ceg = std::min(up_limit, today_get_gold + ceg);
int finaly_ceg = std::max(0, new_ceg - today_get_gold);
stats->pb_hero_stats.set_ceg_uplimit(up_limit);
stats->pb_hero_stats.set_today_get_ceg
(std::min(up_limit, today_get_gold + finaly_ceg));
stats->pb_hero_stats.set_reward_ceg(finaly_ceg);
stats->pb_hero_stats.ceg_uplimit = up_limit;
stats->pb_hero_stats.today_get_ceg =
std::min(up_limit, today_get_gold + finaly_ceg);
stats->pb_hero_stats.reward_ceg = finaly_ceg;
}
#endif
}
std::vector<std::shared_ptr<a8::XObject>> weapons;
if (weapon_dto1) {