1
This commit is contained in:
parent
8ecb8439dc
commit
f8fdce315c
@ -465,22 +465,19 @@ void BattleDataContext::CalcBattleStat(struct PlayerStats* stats)
|
|||||||
const mt::Hero* hero_meta = mt::Hero::GetById(hero_id);
|
const mt::Hero* hero_meta = mt::Hero::GetById(hero_id);
|
||||||
const mt::HeroQuality* quality_meta = mt::HeroQuality::GetById(quality);
|
const mt::HeroQuality* quality_meta = mt::HeroQuality::GetById(quality);
|
||||||
|
|
||||||
// 222
|
stats->pb_hero_stats.hero_uniid = a8::XValue(hero_ability_->hero_uniid_).GetString();
|
||||||
#if 0
|
stats->pb_hero_stats.hero_id = hero_id;
|
||||||
stats->pb_hero_stats.set_hero_uniid(a8::XValue(hero_ability_->hero_uniid_).GetString());
|
stats->pb_hero_stats.hero_name = hero_meta ? hero_meta->name() : "";
|
||||||
stats->pb_hero_stats.set_hero_id(hero_id);
|
|
||||||
stats->pb_hero_stats.set_hero_name(hero_meta ? hero_meta->name() : "");
|
|
||||||
if (quality_meta) {
|
if (quality_meta) {
|
||||||
int up_limit = quality_meta->GetPvpCegUpLimit();
|
int up_limit = quality_meta->GetPvpCegUpLimit();
|
||||||
int ceg = CalcHeroPvpCeg(up_limit, stats);
|
int ceg = CalcHeroPvpCeg(up_limit, stats);
|
||||||
int new_ceg = std::min(up_limit, today_get_gold + ceg);
|
int new_ceg = std::min(up_limit, today_get_gold + ceg);
|
||||||
int finaly_ceg = std::max(0, new_ceg - today_get_gold);
|
int finaly_ceg = std::max(0, new_ceg - today_get_gold);
|
||||||
stats->pb_hero_stats.set_ceg_uplimit(up_limit);
|
stats->pb_hero_stats.ceg_uplimit = up_limit;
|
||||||
stats->pb_hero_stats.set_today_get_ceg
|
stats->pb_hero_stats.today_get_ceg =
|
||||||
(std::min(up_limit, today_get_gold + finaly_ceg));
|
std::min(up_limit, today_get_gold + finaly_ceg);
|
||||||
stats->pb_hero_stats.set_reward_ceg(finaly_ceg);
|
stats->pb_hero_stats.reward_ceg = finaly_ceg;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
std::vector<std::shared_ptr<a8::XObject>> weapons;
|
std::vector<std::shared_ptr<a8::XObject>> weapons;
|
||||||
if (weapon_dto1) {
|
if (weapon_dto1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user