合成英雄修改

lvxinran 2020-08-17 05:36:19 +08:00
parent 0c3ddad0e4
commit 19ee0348b9
1 changed files with 4 additions and 2 deletions

View File

@ -2514,9 +2514,11 @@ public class HeroLogic{
} }
//返还法宝修炼材料 //返还法宝修炼材料
Map<Integer, Integer> especialEquipReturnItem = ItemLogic.getInstance().heroEspecialEquipReturnItem(hero); Map<Integer, Integer> especialEquipReturnItem = ItemLogic.getInstance().heroEspecialEquipReturnItem(hero);
if(especialEquipReturnItem!=null&&especialEquipReturnItem.size()>0){
for(Map.Entry<Integer,Integer> entry:especialEquipReturnItem.entrySet()){ for(Map.Entry<Integer,Integer> entry:especialEquipReturnItem.entrySet()){
returnItemMap.put(entry.getKey(),returnItemMap.getOrDefault(entry.getKey(),0)+entry.getValue()); returnItemMap.put(entry.getKey(),returnItemMap.getOrDefault(entry.getKey(),0)+entry.getValue());
} }
}
// int especialEquipLevel = hero.getEspecialEquipLevel(); // int especialEquipLevel = hero.getEspecialEquipLevel();
// if(especialEquipLevel==1||especialEquipLevel==0){ // if(especialEquipLevel==1||especialEquipLevel==0){
// continue; // continue;