buff不生效修改
parent
444bcddf9b
commit
f602185b16
|
@ -55,7 +55,7 @@ public class CombatLogic {
|
|||
if(contiue == 0){
|
||||
int typeTmp = sFoodsConfig.getType();
|
||||
int targetTmp = sFoodsConfig.getTarget();
|
||||
if( typeTmp== GlobalsDef.FOOD_ADDITION_BATTLE_TYPE && targetTmp==GlobalsDef.FOOD_EAT_AFFECT_PERSON ){
|
||||
if( typeTmp== GlobalsDef.FOOD_ADDITION_BATTLE_TYPE && targetTmp==GlobalsDef.FOOD_EAT_AFFECT_TEAM ){
|
||||
boolean change = false;
|
||||
int[][] effectParas = sFoodsConfig.getEffectPara();
|
||||
Map<String, Map<Integer, Integer>> heroAllAttributeMap = mapManager.getHeroAllAttributeMap();
|
||||
|
@ -73,7 +73,9 @@ public class CombatLogic {
|
|||
effectId = HeroAttributeEnum.CurHP.getPropertyId();
|
||||
effectValue = value.get(HeroAttributeEnum.Hp.getPropertyId()) * effectValue/10000;
|
||||
}else{
|
||||
effectId = sPropertyConfig.getTargetPropertyId();
|
||||
if(sPropertyConfig.getTargetPropertyId()!=0){
|
||||
effectId = sPropertyConfig.getTargetPropertyId();
|
||||
}
|
||||
effectValue = value.get(effectId) * effectValue/10000;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -798,6 +798,7 @@ public class HeroLogic {
|
|||
}else{
|
||||
if(sPropertyConfig.getStyle() == GlobalsDef.PERCENT_TYPE){
|
||||
sb.append(propertyValue/10000f).append(DIVISION);
|
||||
|
||||
}else{
|
||||
sb.append(propertyValue).append(DIVISION);
|
||||
}
|
||||
|
@ -1020,7 +1021,7 @@ public class HeroLogic {
|
|||
return heroAllAttribute;
|
||||
}
|
||||
//食物buffer加成
|
||||
Map<Integer, Integer> foodAddMap = CombatLogic.getInstance().attributeByEatFood(user,GlobalsDef.FOOD_ADDITION_BATTLE_TYPE, GlobalsDef.FOOD_EAT_AFFECT_PERSON);
|
||||
Map<Integer, Integer> foodAddMap = CombatLogic.getInstance().attributeByEatFood(user,GlobalsDef.FOOD_ADDITION_BATTLE_TYPE, GlobalsDef.FOOD_EAT_AFFECT_TEAM);
|
||||
if(foodAddMap.isEmpty()){
|
||||
return heroAllAttribute;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue