猎妖之路节点生成错误
parent
22a5668ac2
commit
1fa16cadd0
|
@ -905,19 +905,21 @@ public class ExpeditionLogic {
|
|||
}
|
||||
int i1 = ranndomFromWeight(cfg);
|
||||
SExpeditionRecruitConfig sExpeditionRecruitConfig = STableManager.getConfig(SExpeditionRecruitConfig.class).get(i1);
|
||||
SCHero hero1 = SCHero.getsCHero().get(sExpeditionRecruitConfig.getHeroId());
|
||||
i++;
|
||||
if(hero1==null){
|
||||
LOGGER.error("英雄配置不存在"+i1);
|
||||
continue;
|
||||
}
|
||||
int propertyName = hero1.getPropertyName();
|
||||
if(tempType.contains(propertyName)){
|
||||
continue;
|
||||
}
|
||||
|
||||
if(type == 1){
|
||||
SCHero hero1 = SCHero.getsCHero().get(sExpeditionRecruitConfig.getHeroId());
|
||||
i++;
|
||||
if(hero1==null){
|
||||
LOGGER.error("英雄配置不存在"+i1);
|
||||
continue;
|
||||
}
|
||||
int propertyName = hero1.getPropertyName();
|
||||
if(tempType.contains(propertyName)){
|
||||
continue;
|
||||
}
|
||||
tempType.add(propertyName);
|
||||
}
|
||||
tempid.add(i1);
|
||||
tempType.add(propertyName);
|
||||
i++;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue