法宝分解前后端不一致
parent
42917b3043
commit
ca2e499a9f
|
@ -329,12 +329,27 @@ public class ItemLogic {
|
|||
}
|
||||
|
||||
|
||||
|
||||
for (String jewelId : jewelList) {
|
||||
user.getEquipManager().remove(jewelId);
|
||||
|
||||
}
|
||||
|
||||
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, StringUtil.parseFiledInt(reward.toString()), 1, 0,BIReason.JEWEL_DECOMPOSE);
|
||||
|
||||
Map<Integer, Integer> baseItemMap = new HashMap<>();
|
||||
Map<Integer, Integer> baseCardMap = new HashMap<>();
|
||||
Map<Integer, Integer> baseEquipMap = new HashMap<>();
|
||||
Map<Integer,Integer> baseRandomMap = new HashMap<>();
|
||||
|
||||
for (int[] ints:items) {
|
||||
if(baseItemMap.containsKey(ints[0])){
|
||||
baseItemMap.put(ints[0],baseItemMap.get(ints[0])+ints[1]);
|
||||
}else {
|
||||
baseItemMap.put(ints[0],ints[1]);
|
||||
}
|
||||
}
|
||||
ItemUtil.drop(user,drop,baseItemMap,baseCardMap,baseEquipMap,baseRandomMap,BIReason.JEWEL_DECOMPOSE);
|
||||
List<CommonProto.Item> reportMap = drop.getItemlistList();
|
||||
List<Integer> itemId = new ArrayList<>(reportMap.size());
|
||||
List<Integer> itemNum = new ArrayList<>(reportMap.size());
|
||||
|
|
Loading…
Reference in New Issue