英雄经验
This commit is contained in:
parent
b26c0b5f20
commit
d9c5c66836
@ -469,7 +469,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex
|
|||||||
maxLv = this.module.configure.GetHeroMaxLv(hero.Star)
|
maxLv = this.module.configure.GetHeroMaxLv(hero.Star)
|
||||||
// 校验玩家等级
|
// 校验玩家等级
|
||||||
if _user := this.module.ModuleUser.GetUser(session.GetUserId()); _user != nil {
|
if _user := this.module.ModuleUser.GetUser(session.GetUserId()); _user != nil {
|
||||||
if expConf := this.module.configure.GetPlayerlvConf(_user.Lv); expConf == nil {
|
if expConf := this.module.configure.GetPlayerlvConf(_user.Lv); expConf != nil {
|
||||||
if maxLv > expConf.HeroLv {
|
if maxLv > expConf.HeroLv {
|
||||||
maxLv = expConf.HeroLv // 英雄最大等级限制
|
maxLv = expConf.HeroLv // 英雄最大等级限制
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user