【模块】大闹天宫-战斗后圣物刷新种类不正确

back_recharge
zhangshanxue 2020-11-30 11:55:29 +08:00
parent 42b0ca9980
commit 93b394ce7e
1 changed files with 7 additions and 2 deletions

View File

@ -479,7 +479,12 @@ public class ExpeditionLogic {
Set<Integer> staffsSet = new HashSet<>();
while (staffsSet.size()<3){
int[][] holyProbability = cfg.getHolyProbability();
int[][] holyProbability = new int[cfg.getHolyProbability().length][2];
for(int j = 0; j < holyProbability.length; j++){
System.arraycopy(cfg.getHolyProbability()[j], 0, holyProbability[j], 0, 2);
}
SExpeditionNodeConfig sExpeditionNodeConfig = STableManager.getConfig(SExpeditionNodeConfig.class).get(type);
if(null!=sExpeditionNodeConfig && sExpeditionNodeConfig.getHolyProbability().length==3){
for (int j = 0; j <holyProbability.length ; j++) {
@ -488,7 +493,7 @@ public class ExpeditionLogic {
}
int ints = staffsSet.size()+1;//默认品质
try {
ints = MathUtils.randomFromWeight(cfg.getHolyProbability());
ints = MathUtils.randomFromWeight(holyProbability);
}catch (Exception e){
break;
// e.printStackTrace();