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 // 获取当前英雄的天赋点数
|
talentPoint += conf.Point // 获取当前英雄的天赋点数
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
res := &cfg.Gameatn{
|
if t := this.module.configure.GetHeroTalentBoxItem(_talent.HeroId); t != "" {
|
||||||
A: "item",
|
res := &cfg.Gameatn{
|
||||||
T: _talent.HeroId,
|
A: "item",
|
||||||
N: talentPoint,
|
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 {
|
if len(_talent.Talent) > 0 {
|
||||||
update := make(map[string]interface{}, 0)
|
update := make(map[string]interface{}, 0)
|
||||||
szTalent := map[int32]int32{}
|
szTalent := map[int32]int32{}
|
||||||
|
Loading…
Reference in New Issue
Block a user