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