觉醒 pro 属性
This commit is contained in:
parent
7e122e786a
commit
fd5c8d73c5
@ -140,7 +140,6 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound, // 道具数量不足
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -60,7 +60,6 @@ func (this *apiComp) Do(session comm.IUserSession, req *pb.DispatchDoReq) (errda
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DispatchHeroNoEnough,
|
||||
Title: pb.ErrorCode_DispatchHeroNoEnough.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -70,7 +69,6 @@ func (this *apiComp) Do(session comm.IUserSession, req *pb.DispatchDoReq) (errda
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DataNotFound,
|
||||
Title: pb.ErrorCode_DataNotFound.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -81,7 +79,6 @@ func (this *apiComp) Do(session comm.IUserSession, req *pb.DispatchDoReq) (errda
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DispatchTicketNoEnough,
|
||||
Title: pb.ErrorCode_DispatchTicketNoEnough.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -670,7 +670,7 @@ func (this *ModelHero) setTalentProperty(hero *pb.DBHero, conf *cfg.GameHeroTale
|
||||
hero.TalentProperty = make(map[string]int32)
|
||||
}
|
||||
|
||||
hero.TalentProperty[conf.Attrkey] += int32(math.Floor((float64(conf.Attrvar) / 1000) * float64(hero.Property[conf.Attrkey])))
|
||||
hero.TalentProperty[conf.Attrkey] += conf.Attrvar
|
||||
|
||||
_heroMap := make(map[string]interface{}, 0)
|
||||
if conf.Skill != 0 {
|
||||
@ -711,7 +711,7 @@ func (this *ModelHero) resetTalentProperty(hero *pb.DBHero) {
|
||||
if v.HeroId == hero.HeroID { // 找到对应的英雄
|
||||
for k := range v.Talent {
|
||||
if conf, _ := this.module.configure.GetHeroTalent(k); conf != nil { //获取天赋
|
||||
hero.TalentProperty[conf.Attrkey] = int32(math.Floor((float64(conf.Attrvar) / 1000) * float64(hero.Property[conf.Attrkey])))
|
||||
hero.TalentProperty[conf.Attrkey] = conf.Attrvar
|
||||
}
|
||||
}
|
||||
break
|
||||
|
@ -375,7 +375,6 @@ func (this *Hero) KungFuHero(session comm.IUserSession, heroObjID string, bKongf
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_HeroAlreadyKongFuStatus, // 已经是练功状态
|
||||
Title: pb.ErrorCode_HeroAlreadyKongFuStatus.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user