精灵升星 bug
天赋点数消耗
This commit is contained in:
parent
496c7a405f
commit
8ceff434d6
@ -593,6 +593,23 @@
|
||||
{
|
||||
"key": 39,
|
||||
"id": "43901",
|
||||
"star": 3,
|
||||
"needhero": "",
|
||||
"needherostar": 0,
|
||||
"needheronum": 0,
|
||||
"needrace": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"needracestar": 3,
|
||||
"needracenum": 3,
|
||||
"gold": 10000
|
||||
},
|
||||
{
|
||||
"key": 40,
|
||||
"id": "43902",
|
||||
"star": 4,
|
||||
"needhero": "",
|
||||
"needherostar": 0,
|
||||
@ -608,7 +625,24 @@
|
||||
"gold": 10000
|
||||
},
|
||||
{
|
||||
"key": 40,
|
||||
"key": 41,
|
||||
"id": "43901",
|
||||
"star": 4,
|
||||
"needhero": "",
|
||||
"needherostar": 0,
|
||||
"needheronum": 0,
|
||||
"needrace": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"needracestar": 4,
|
||||
"needracenum": 4,
|
||||
"gold": 10000
|
||||
},
|
||||
{
|
||||
"key": 42,
|
||||
"id": "43902",
|
||||
"star": 5,
|
||||
"needhero": "",
|
||||
|
@ -56,8 +56,9 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
return
|
||||
}
|
||||
heroConf := this.module.configure.GetHeroConfig(_hero.HeroID)
|
||||
nextHeroConfig := this.module.configure.GetHeroStarupConfig(_hero.HeroID, _hero.Star+1)
|
||||
if nextHeroConfig == nil {
|
||||
if nextHeroConfig == nil && heroConf.Type != comm.CardTypeStar {
|
||||
code = pb.ErrorCode_HeroMaxStarLv
|
||||
return
|
||||
}
|
||||
@ -142,7 +143,7 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
|
||||
"sameCount": 1,
|
||||
"isOverlying": false,
|
||||
}
|
||||
heroConf := this.module.configure.GetHeroConfig(_hero.HeroID)
|
||||
|
||||
if heroConf != nil && heroConf.Type == comm.CardTypeStar { // 升星卡升星 修改heroid
|
||||
hid := this.module.configure.GetHeroSpriteStar(_hero.HeroID)
|
||||
if hid != "" {
|
||||
|
@ -96,12 +96,12 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe
|
||||
if code = this.module.CheckRes(session, []*cfg.Gameatn{res}); code != pb.ErrorCode_Success {
|
||||
return
|
||||
} else {
|
||||
if code = this.module.DispenseRes(session, []*cfg.Gameatn{res}, true); code != pb.ErrorCode_Success {
|
||||
if code = this.module.ConsumeRes(session, []*cfg.Gameatn{res}, true); code != pb.ErrorCode_Success {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
if code = this.module.DispenseRes(session, talentConf.Thing, true); code != pb.ErrorCode_Success {
|
||||
if code = this.module.ConsumeRes(session, talentConf.Thing, true); code != pb.ErrorCode_Success {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -400,7 +400,7 @@ func (this *configureComp) GetHeroFucionConfig(cid string) (data *cfg.GameHerofu
|
||||
|
||||
func (this *configureComp) GetHeroSpriteStar(cid string) (hid string) {
|
||||
if v, err := this.GetConfigure(hero_starupsp); err == nil {
|
||||
if configure, ok := v.(*cfg.GameHeroStarupSp); !ok {
|
||||
if configure, ok := v.(*cfg.GameHeroStarupSp); ok {
|
||||
hid = configure.Get(cid).Starid
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user