占星优化

back_recharge
zhangshanxue 2019-09-23 18:51:31 +08:00
parent 266808f042
commit bff92f29f0
1 changed files with 3 additions and 1 deletions

View File

@ -535,6 +535,7 @@ public class ItemLogic {
ArrayList<Integer> droplist = new ArrayList<>();
int realTime = 0;
int randTime = time == 1 ? 1 : 50;
int newPool = currentPool;
for (int i = 0; i < randTime; i++) {
SEquipTalismanaLottery lotteryIn = SEquipTalismanaLottery.getsEquipTalismanaLotteryMap().get(currentPool);
if (null == lotteryIn) {
@ -551,7 +552,8 @@ public class ItemLogic {
}
}
droplist.add(MathUtils.randomFromWeight(lotteryIn.getDrop()));
currentPool = MathUtils.randomFromWeight(lottery.getProbability());
currentPool = newPool;
newPool = MathUtils.randomFromWeight(lotteryIn.getProbability());
realTime++;
}
if (time != 50) {