【模块】大闹天宫-战斗后圣物刷新种类不正确
parent
42b0ca9980
commit
93b394ce7e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue