Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
7fb01fa819
@ -48,14 +48,17 @@ func (this *apiComp) TalentReset(session comm.IUserSession, req *pb.HeroTalentRe
|
||||
talentPoint += conf.Point // 获取当前英雄的天赋点数
|
||||
}
|
||||
}
|
||||
res := &cfg.Gameatn{
|
||||
A: "item",
|
||||
T: _talent.HeroId,
|
||||
N: talentPoint,
|
||||
if t := this.module.configure.GetHeroTalentBoxItem(_talent.HeroId); t != "" {
|
||||
res := &cfg.Gameatn{
|
||||
A: "item",
|
||||
T: t,
|
||||
N: talentPoint,
|
||||
}
|
||||
if code = this.module.DispenseRes(session, []*cfg.Gameatn{res}, true); code != pb.ErrorCode_Success {
|
||||
this.module.Errorf("DispenseRes err,uid:%s,item:%v", session.GetUserId(), res)
|
||||
} // 返还升级的天赋点数
|
||||
}
|
||||
if code = this.module.DispenseRes(session, []*cfg.Gameatn{res}, true); code != pb.ErrorCode_Success {
|
||||
this.module.Errorf("DispenseRes err,uid:%s,item:%v", session.GetUserId(), res)
|
||||
} // 返还升级的天赋点数
|
||||
|
||||
if len(_talent.Talent) > 0 {
|
||||
update := make(map[string]interface{}, 0)
|
||||
szTalent := map[int32]int32{}
|
||||
|
Loading…
Reference in New Issue
Block a user