back_recharge
wangyuan 2019-08-10 12:08:03 +08:00
parent e456ed0bd8
commit dd0cab498d
1 changed files with 5 additions and 0 deletions

View File

@ -911,6 +911,7 @@ public class HeroLogic {
} }
public Map<Integer,Integer> calHeroNotBufferAttribute(User user, Hero hero,boolean isForce){ public Map<Integer,Integer> calHeroNotBufferAttribute(User user, Hero hero,boolean isForce){
LOGGER.info("cal herotid = {}",hero.getTemplateId());
Map<Integer, Integer> heroAllAttribute = calHeroAllAttribute(hero,isForce); Map<Integer, Integer> heroAllAttribute = calHeroAllAttribute(hero,isForce);
heroAllAttribute.put(HeroAttributeEnum.CurHP.getPropertyId(),heroAllAttribute.get(GlobalsDef.HP_TYPE)); heroAllAttribute.put(HeroAttributeEnum.CurHP.getPropertyId(),heroAllAttribute.get(GlobalsDef.HP_TYPE));
Collection<String> values = hero.getEquipByPositionMap().values(); Collection<String> values = hero.getEquipByPositionMap().values();
@ -941,10 +942,12 @@ public class HeroLogic {
Equip equip = equipManager.getEquipMap().get(equipId); Equip equip = equipManager.getEquipMap().get(equipId);
Map<Integer, Integer> propertyValueByIdMap = equip.getPropertyValueByIdMap(); Map<Integer, Integer> propertyValueByIdMap = equip.getPropertyValueByIdMap();
Map<Integer, Integer> secondValueByIdMap = equip.getSecondValueByIdMap(); Map<Integer, Integer> secondValueByIdMap = equip.getSecondValueByIdMap();
LOGGER.info("cal equip = {}",equip.getEquipId());
combinedAttribute(propertyValueByIdMap,heroAllAttribute); combinedAttribute(propertyValueByIdMap,heroAllAttribute);
combinedAttribute(secondValueByIdMap,heroAllAttribute); combinedAttribute(secondValueByIdMap,heroAllAttribute);
SEquipConfig sEquipConfig = SEquipConfig.getsEquipConfigById(equip.getEquipId()); SEquipConfig sEquipConfig = SEquipConfig.getsEquipConfigById(equip.getEquipId());
equipForce+=sEquipConfig.getScore(); equipForce+=sEquipConfig.getScore();
LOGGER.info("cal equip = {} end",equip.getEquipId());
} }
//天赋异妖加成 //天赋异妖加成
Map<Integer, Pokemon> ringFireMap = pokemonManager.getRingFireMap(); Map<Integer, Pokemon> ringFireMap = pokemonManager.getRingFireMap();
@ -1004,6 +1007,7 @@ public class HeroLogic {
heroAllAttribute.put(HeroAttributeEnum.CurHP.getPropertyId(),heroAllAttribute.get(GlobalsDef.HP_TYPE)); heroAllAttribute.put(HeroAttributeEnum.CurHP.getPropertyId(),heroAllAttribute.get(GlobalsDef.HP_TYPE));
//装备战力保存 //装备战力保存
heroAllAttribute.put(HeroAttributeEnum.EquipForce.getPropertyId(),equipForce); heroAllAttribute.put(HeroAttributeEnum.EquipForce.getPropertyId(),equipForce);
LOGGER.info("cal herotid = {},end",hero.getTemplateId());
return heroAllAttribute; return heroAllAttribute;
} }
@ -1127,6 +1131,7 @@ public class HeroLogic {
propertyValue += heroAttributeMap.get(propertyId); propertyValue += heroAttributeMap.get(propertyId);
} }
heroAttributeMap.put(propertyId,propertyValue); heroAttributeMap.put(propertyId,propertyValue);
LOGGER.info("the propertyId={} the propertyValue is ={},",propertyId,propertyValue);
} }
} }
public void combinedAttribute(int[][] otherAttriMap,Map<Integer,Integer> heroAttributeMap){ public void combinedAttribute(int[][] otherAttriMap,Map<Integer,Integer> heroAttributeMap){