抽卡保底修改多次触发保底只触发一次
parent
58444ae61d
commit
3edf0c609f
|
@ -267,18 +267,20 @@ public class HeroLogic{
|
||||||
}
|
}
|
||||||
|
|
||||||
int j=0;
|
int j=0;
|
||||||
|
//标记是否触发保底
|
||||||
|
boolean specialTrigger=false;
|
||||||
for(int i=0;i<perCount;i++){
|
for(int i=0;i<perCount;i++){
|
||||||
randCount++;
|
randCount++;
|
||||||
poolCount++;
|
poolCount++;
|
||||||
int randomPoolId = pooId;
|
int randomPoolId = pooId;
|
||||||
int specialPoolId = getSpecialPoolByRandcount(sLotterySetting, randCount,poolCount);
|
if(!specialTrigger){
|
||||||
if(specialPoolId == 0){
|
randomPoolId = getSpecialPoolByRandcount(sLotterySetting, randCount,poolCount);
|
||||||
if(randomPoolId==0){
|
specialTrigger=true;
|
||||||
randomPoolId = getPooId(sLotterySetting);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
randomPoolId =specialPoolId;
|
|
||||||
}
|
}
|
||||||
|
if(randomPoolId==0){
|
||||||
|
randomPoolId = getPooId(sLotterySetting);
|
||||||
|
}
|
||||||
|
|
||||||
totalCount++;
|
totalCount++;
|
||||||
SLotteryRewardConfig sLotteryRewardConfig = randomHeroByPoolId(randomPoolId, totalCount, user.getPlayerInfoManager().getLevel());
|
SLotteryRewardConfig sLotteryRewardConfig = randomHeroByPoolId(randomPoolId, totalCount, user.getPlayerInfoManager().getLevel());
|
||||||
LOGGER.info("the uid={},the type={},the poolId={},reward={},poolCount={}",uid,type,randomPoolId,sLotteryRewardConfig.getId(),poolCount);
|
LOGGER.info("the uid={},the type={},the poolId={},reward={},poolCount={}",uid,type,randomPoolId,sLotteryRewardConfig.getId(),poolCount);
|
||||||
|
|
Loading…
Reference in New Issue