装备 法宝 修改
parent
75d5c4aff2
commit
cc6da29f57
|
@ -676,13 +676,6 @@ public class ItemUtil {
|
|||
for (Map.Entry<Integer, Integer> entry : equipMap.entrySet()) {
|
||||
SEquipConfig sEquipConfig = STableManager.getConfig(SEquipConfig.class).get(entry.getKey());
|
||||
if (sEquipConfig == null) {
|
||||
Map<Integer, SEquipTalismana> sEquipTalismanaMap = SEquipTalismana.equipTalismanaStarMap.get(entry.getKey());
|
||||
if(sEquipTalismanaMap!=null&&sEquipTalismanaMap.size()>0){
|
||||
EspecialEquip tempEquip = new EspecialEquip(user.getId(),entry.getKey());
|
||||
especialEquip.add(CBean2Proto.getEquipProto(tempEquip));
|
||||
especialEquips.add(tempEquip);
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
Integer nums = entry.getValue();
|
||||
|
@ -693,6 +686,19 @@ public class ItemUtil {
|
|||
}
|
||||
LOGGER.info("the uid={},the curMapId={},add equip={},equipNum={},totalEquipNum={}",user.getId(),user.getMapManager().getCurMapId(),entry.getKey(),nums,equips.size());
|
||||
}
|
||||
for (Map.Entry<Integer, Integer> entry : equipMap.entrySet()) {
|
||||
SEquipTalismana sEquipTalismana = STableManager.getConfig(SEquipTalismana.class).get(entry.getKey());
|
||||
if (sEquipTalismana == null) {
|
||||
continue;
|
||||
}
|
||||
Integer nums = entry.getValue();
|
||||
for(int i=0;i<nums;i++){
|
||||
EspecialEquip equip = new EspecialEquip(user.getId(), entry.getKey());
|
||||
especialEquips.add(equip);
|
||||
especialEquip.add(CBean2Proto.getEquipProto(equip));
|
||||
}
|
||||
LOGGER.info("the uid={},the curMapId={},add equip={},equipNum={},totalEquipNum={}",user.getId(),user.getMapManager().getCurMapId(),entry.getKey(),nums,equips.size());
|
||||
}
|
||||
|
||||
for (Map.Entry<Integer, Integer> entry : equipMap.entrySet()) {
|
||||
SEquipSign sEquipSign = SEquipSign.getsEquipSignMap().get(entry.getKey()*100+1);
|
||||
|
|
Loading…
Reference in New Issue