英雄配置错误信息收集

This commit is contained in:
meixiongfeng 2023-03-01 09:49:06 +08:00
parent 39221f5fb2
commit 2fc9a1cf26

View File

@ -437,6 +437,7 @@ func (this *ModelHero) PropertyCompute(hero *pb.DBHero) {
starCfg := this.moduleHero.configure.GetHeroStar(hero.Star)
starLvfg := this.moduleHero.configure.GetHeroLv(starCfg.Level)
if growCfg == nil || heroCfg == nil || lvCfg == nil || starCfg == nil || starLvfg == nil {
this.moduleHero.Debugf("hero PropertyCompute Configure Info err:heroid :%s, herolv:=%d,heroStar:%d,", hero.HeroID, hero.Lv, hero.Star)
return
}
var atk = (this.StarAtkAddition(hero.Star) + lvCfg.Atk + float32(growCfg.Atk)) * (growCfg.Atkgrow / 1000.0)