抽卡保底修改多次触发保底只触发一次

back_recharge
wangyuan 2020-05-27 11:22:01 +08:00
parent 58444ae61d
commit 3edf0c609f
1 changed files with 9 additions and 7 deletions

View File

@ -267,18 +267,20 @@ public class HeroLogic{
}
int j=0;
//标记是否触发保底
boolean specialTrigger=false;
for(int i=0;i<perCount;i++){
randCount++;
poolCount++;
int randomPoolId = pooId;
int specialPoolId = getSpecialPoolByRandcount(sLotterySetting, randCount,poolCount);
if(specialPoolId == 0){
if(randomPoolId==0){
randomPoolId = getPooId(sLotterySetting);
}
}else{
randomPoolId =specialPoolId;
if(!specialTrigger){
randomPoolId = getSpecialPoolByRandcount(sLotterySetting, randCount,poolCount);
specialTrigger=true;
}
if(randomPoolId==0){
randomPoolId = getPooId(sLotterySetting);
}
totalCount++;
SLotteryRewardConfig sLotteryRewardConfig = randomHeroByPoolId(randomPoolId, totalCount, user.getPlayerInfoManager().getLevel());
LOGGER.info("the uid={},the type={},the poolId={},reward={},poolCount={}",uid,type,randomPoolId,sLotteryRewardConfig.getId(),poolCount);