解决冲突
This commit is contained in:
parent
fc4a8c7596
commit
801bee697d
@ -35,7 +35,6 @@ func (this *apiComp) DrawCardV2(session comm.IUserSession, req *pb.HeroDrawCardR
|
|||||||
strPool []string // 10连跨多个卡池情况
|
strPool []string // 10连跨多个卡池情况
|
||||||
update map[string]interface{}
|
update map[string]interface{}
|
||||||
normalDraw bool // 是否是普通抽
|
normalDraw bool // 是否是普通抽
|
||||||
<<<<<<< HEAD
|
|
||||||
drawConf *cfg.GameDrawPoolData
|
drawConf *cfg.GameDrawPoolData
|
||||||
err error
|
err error
|
||||||
|
|
||||||
@ -69,9 +68,7 @@ func (this *apiComp) DrawCardV2(session comm.IUserSession, req *pb.HeroDrawCardR
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
=======
|
|
||||||
)
|
|
||||||
>>>>>>> 03aec7e408a1e80da7f408debda883b93b688d29
|
|
||||||
update = make(map[string]interface{})
|
update = make(map[string]interface{})
|
||||||
cfgDraw = this.module.ModuleTools.GetGlobalConf() // 读取抽卡配置文件
|
cfgDraw = this.module.ModuleTools.GetGlobalConf() // 读取抽卡配置文件
|
||||||
if cfgDraw == nil {
|
if cfgDraw == nil {
|
||||||
@ -80,7 +77,6 @@ func (this *apiComp) DrawCardV2(session comm.IUserSession, req *pb.HeroDrawCardR
|
|||||||
if errdata = this.DrawCardV2Check(session, req); errdata != nil {
|
if errdata = this.DrawCardV2Check(session, req); errdata != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
drawCount = heroRecord.Count[req.DrawType] // 获取当前阵容抽卡次数
|
drawCount = heroRecord.Count[req.DrawType] // 获取当前阵容抽卡次数
|
||||||
if req.DrawType == 0 { // 普通卡池抽卡
|
if req.DrawType == 0 { // 普通卡池抽卡
|
||||||
@ -101,13 +97,7 @@ func (this *apiComp) DrawCardV2(session comm.IUserSession, req *pb.HeroDrawCardR
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
szCards = make([]string, 0)
|
|
||||||
|
|
||||||
heroRecord, _ = this.module.modelRecord.GetHeroRecord(session.GetUserId())
|
|
||||||
drawCount = heroRecord.Drawcount
|
|
||||||
|
|
||||||
>>>>>>> 03aec7e408a1e80da7f408debda883b93b688d29
|
|
||||||
if req.DrawType == 0 { // 普通卡池抽卡
|
if req.DrawType == 0 { // 普通卡池抽卡
|
||||||
normalDraw = true
|
normalDraw = true
|
||||||
// 获取普通抽卡池
|
// 获取普通抽卡池
|
||||||
|
@ -392,11 +392,6 @@ func (this *configureComp) GetHeroMaxLv(star int32) int32 {
|
|||||||
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
<<<<<<< Updated upstream
|
|
||||||
=======
|
|
||||||
=======
|
|
||||||
>>>>>>> 03aec7e408a1e80da7f408debda883b93b688d29
|
|
||||||
func (this *configureComp) GetHeroTalentMaxLv(heroid string) (maxlv int32) {
|
func (this *configureComp) GetHeroTalentMaxLv(heroid string) (maxlv int32) {
|
||||||
if v, err := this.GetConfigure(hero_talentbox); err == nil {
|
if v, err := this.GetConfigure(hero_talentbox); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameTalentBox); ok {
|
if configure, ok := v.(*cfg.GameTalentBox); ok {
|
||||||
@ -415,11 +410,8 @@ func (this *configureComp) GetHeroDrawConfigByType(id int32) (data *cfg.GameDraw
|
|||||||
|
|
||||||
if v, err = this.GetConfigure(hero_draw); err == nil {
|
if v, err = this.GetConfigure(hero_draw); err == nil {
|
||||||
if conf, ok := v.(*cfg.GameDrawPool); ok {
|
if conf, ok := v.(*cfg.GameDrawPool); ok {
|
||||||
<<<<<<< HEAD
|
|
||||||
if data = conf.Get(id - 1); data != nil {
|
if data = conf.Get(id - 1); data != nil {
|
||||||
=======
|
|
||||||
if data = conf.Get(id); data != nil {
|
|
||||||
>>>>>>> 03aec7e408a1e80da7f408debda883b93b688d29
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -448,7 +440,3 @@ func (this *configureComp) GetHeroDrawWeightConfigById(id int32) (data *cfg.Game
|
|||||||
err = comm.NewNotFoundConfErr(moduleName, hero_draw, id)
|
err = comm.NewNotFoundConfErr(moduleName, hero_draw, id)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
=======
|
|
||||||
>>>>>>> 03aec7e408a1e80da7f408debda883b93b688d29
|
|
||||||
|
Loading…
Reference in New Issue
Block a user