首次十连不额外计算概率

This commit is contained in:
meixiongfeng 2022-11-23 20:14:17 +08:00
parent 3fccd69753
commit 8f9f187086

View File

@ -200,6 +200,9 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
if int32(len(v)) > randomIndex {
if star == 5 { // 抽出5星英雄后A次抽奖内不会再抽到5星英雄普通卡池+阵营卡池)
curDrawCount := drawCount - req.DrawCount
if curDrawCount <= 10 { // 首次十连不计算
continue
}
newID := this.module.ContinuousRestriction(session.GetUserId(), v[randomIndex].Id, curDrawCount+int32(index), strPool[index])
szCards = append(szCards, newID)
continue