fix team
parent
dc00f02962
commit
200905d5a3
|
@ -433,12 +433,12 @@ public class HeroLogic {
|
|||
if (hero == null) {
|
||||
break;
|
||||
}
|
||||
if(heroAllAttributeMap.get(heroInfo)!=null){
|
||||
if(heroAllAttributeMap.get(heroInfo.getHeroId())!=null){
|
||||
continue;
|
||||
}
|
||||
Map<Integer, Integer> heroAllAttribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero,false,teamId);
|
||||
Map<String, Integer> endlessHeroInfo = user.getMapManager().getEndlessMapInfo().getEndlessHeroInfo();
|
||||
if(endlessHeroInfo!=null&& endlessHeroInfo.size()>0){
|
||||
if(endlessHeroInfo!=null&& endlessHeroInfo.containsKey(heroInfo.getHeroId())){
|
||||
int curHp = (int)(endlessHeroInfo.get(heroInfo.getHeroId()) /10000.00 * heroAllAttribute.get(HeroAttributeEnum.Hp.getPropertyId()));
|
||||
heroAllAttribute.put(HeroAttributeEnum.CurHP.getPropertyId(), curHp);
|
||||
}
|
||||
|
|
|
@ -545,10 +545,13 @@ public class ItemUtil {
|
|||
|
||||
continue;
|
||||
}
|
||||
Equip equip = new Equip(user.getId(), entry.getKey());
|
||||
equips.add(equip);
|
||||
equipProtoList.add(CBean2Proto.getEquipProto(equip));
|
||||
LOGGER.info("the uid={},the curMapId={},add equip={},equipNum={},totalEquipNum={}",user.getId(),user.getMapManager().getCurMapId(),entry.getKey(),1,equips.size());
|
||||
Integer nums = entry.getValue();
|
||||
for(int i=0;i<nums;i++){
|
||||
Equip equip = new Equip(user.getId(), entry.getKey());
|
||||
equips.add(equip);
|
||||
equipProtoList.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()) {
|
||||
|
@ -556,10 +559,13 @@ public class ItemUtil {
|
|||
if (sEquipSign == null) {
|
||||
continue;
|
||||
}
|
||||
SoulEquip soulEquip1 = new SoulEquip(user.getId(), entry.getKey());
|
||||
soulEquips.add(soulEquip1);
|
||||
soulEquiplist.add(CBean2Proto.getEquipProto(soulEquip1));
|
||||
LOGGER.info("the uid={},the curMapId={},add equip={},equipNum={},totalEquipNum={}",user.getId(),user.getMapManager().getCurMapId(),entry.getKey(),1,equips.size());
|
||||
Integer nums = entry.getValue();
|
||||
for(int i=0;i<nums;i++){
|
||||
SoulEquip soulEquip1 = new SoulEquip(user.getId(), entry.getKey());
|
||||
soulEquips.add(soulEquip1);
|
||||
soulEquiplist.add(CBean2Proto.getEquipProto(soulEquip1));
|
||||
}
|
||||
LOGGER.info("the uid={},the curMapId={},add equip={},equipNum={},totalEquipNum={}",user.getId(),user.getMapManager().getCurMapId(),entry.getKey(),nums,equips.size());
|
||||
}
|
||||
|
||||
mapManager.setTemporaryItems(temporaryItems);
|
||||
|
|
Loading…
Reference in New Issue