占星优化
parent
6cb28477c9
commit
d54dbb502f
|
@ -527,7 +527,6 @@ 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) {
|
||||
|
@ -543,9 +542,8 @@ public class ItemLogic {
|
|||
break;
|
||||
}
|
||||
}
|
||||
currentPool = newPool;
|
||||
newPool = MathUtils.randomFromWeight(lotteryIn.getProbability());
|
||||
|
||||
currentPool = MathUtils.randomFromWeight(lotteryIn.getProbability());
|
||||
SEquipTalismanaLottery nextLotteryIn = SEquipTalismanaLottery.getsEquipTalismanaLotteryMap().get(currentPool);
|
||||
if (null == nextLotteryIn) {
|
||||
throw new Exception("SEquipTalismanaLottery 配置不存在" + currentPool);
|
||||
|
|
Loading…
Reference in New Issue