占星优化

back_recharge
zhangshanxue 2019-09-24 11:09:16 +08:00
parent 6cb28477c9
commit d54dbb502f
1 changed files with 1 additions and 3 deletions

View File

@ -527,7 +527,6 @@ public class ItemLogic {
ArrayList<Integer> droplist = new ArrayList<>(); ArrayList<Integer> droplist = new ArrayList<>();
int realTime = 0; int realTime = 0;
int randTime = time == 1 ? 1 : 50; int randTime = time == 1 ? 1 : 50;
int newPool = currentPool;
for (int i = 0; i < randTime; i++) { for (int i = 0; i < randTime; i++) {
SEquipTalismanaLottery lotteryIn = SEquipTalismanaLottery.getsEquipTalismanaLotteryMap().get(currentPool); SEquipTalismanaLottery lotteryIn = SEquipTalismanaLottery.getsEquipTalismanaLotteryMap().get(currentPool);
if (null == lotteryIn) { if (null == lotteryIn) {
@ -543,9 +542,8 @@ public class ItemLogic {
break; break;
} }
} }
currentPool = newPool;
newPool = MathUtils.randomFromWeight(lotteryIn.getProbability());
currentPool = MathUtils.randomFromWeight(lotteryIn.getProbability());
SEquipTalismanaLottery nextLotteryIn = SEquipTalismanaLottery.getsEquipTalismanaLotteryMap().get(currentPool); SEquipTalismanaLottery nextLotteryIn = SEquipTalismanaLottery.getsEquipTalismanaLotteryMap().get(currentPool);
if (null == nextLotteryIn) { if (null == nextLotteryIn) {
throw new Exception("SEquipTalismanaLottery 配置不存在" + currentPool); throw new Exception("SEquipTalismanaLottery 配置不存在" + currentPool);