抽卡保底修改多次触发保底只触发一次
parent
58444ae61d
commit
3edf0c609f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue