保底次数修复
This commit is contained in:
parent
2f79337763
commit
285e99acc4
@ -177,6 +177,8 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
||||
for i := 1; i <= int(req.DrawCount); i++ { // 一张一张的抽
|
||||
heroRecord.Race[req.DrawType] += 1
|
||||
drawCount++
|
||||
heroRecord.Baodi5[req.DrawType]++
|
||||
heroRecord.Baodi4[req.DrawType]++
|
||||
if v, ok := appointmap[drawCount]; ok { // 优先校验是否是指定抽
|
||||
strPool = append(strPool, v) //找到了
|
||||
continue
|
||||
@ -237,8 +239,7 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
||||
}
|
||||
continue
|
||||
}
|
||||
heroRecord.Baodi5[req.DrawType]++
|
||||
heroRecord.Baodi4[req.DrawType]++
|
||||
|
||||
if req.DrawCount == 10 {
|
||||
if star4Count >= cfgGlobal.Draw10Star4Max { // 10连抽最大4星数量
|
||||
if IsBaodiPool {
|
||||
|
Loading…
Reference in New Issue
Block a user