白金装备技能加入战斗数据
parent
447ac9d61b
commit
971447a392
|
|
@ -2033,6 +2033,36 @@ public class HeroLogic{
|
|||
sb.append(skill).append(DIVISION);
|
||||
}
|
||||
}
|
||||
Iterator<Map.Entry<Integer, Integer>> iterator = hero.getEquipByHongmengPositionMap(user.getHeroManager()).entrySet().iterator();
|
||||
// 套装list初始化
|
||||
ArrayList<SEquipConfig> suiteNumList = new ArrayList<>();
|
||||
while (iterator.hasNext()){
|
||||
Map.Entry<Integer, Integer> next = iterator.next();
|
||||
SEquipConfig sEquipConfig = STableManager.getConfig(SEquipConfig.class).get(next.getValue());
|
||||
// 添加到套装list
|
||||
suiteNumList.add(sEquipConfig);
|
||||
}
|
||||
Collections.sort(suiteNumList);
|
||||
// 记录当前长度(位置)
|
||||
int num = suiteNumList.size();
|
||||
if (!suiteNumList.isEmpty()){
|
||||
// 遍历套装list
|
||||
for (SEquipConfig item : suiteNumList) {
|
||||
//根据星级读取配置表,为空表示不是套装
|
||||
SEquipSuiteConfig sEquipSuiteConfig =SEquipSuiteConfig.config.get(item.getStar());
|
||||
if (null != sEquipSuiteConfig){
|
||||
// 根据套装数量读表,为空标是套装数量不足
|
||||
Integer integer = sEquipSuiteConfig.getSuiteSkills().get(num);
|
||||
if (integer == null) {
|
||||
num-=1;
|
||||
continue;
|
||||
}
|
||||
sb.append(integer).append(DIVISION);
|
||||
}
|
||||
// 不管是否是套装,都要-1
|
||||
num-=1;
|
||||
}
|
||||
}
|
||||
return sb;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue