back_recharge
wangyuan 2019-06-02 18:47:34 +08:00
parent f48f51cc61
commit 7f0b05baec
1 changed files with 3 additions and 3 deletions

View File

@ -933,17 +933,17 @@ public class HeroLogic {
Integer targetValue = heroAllAttribute.get(targetPropertyId);
if(style == GlobalsDef.ABSOLUTE_TYPE){
effectValue += targetValue;
heroAllAttribute.put(targetPropertyId,effectValue);
}else{
propertyPercentMap.put(targetPropertyId,100+effectValue);
propertyPercentMap.put(targetPropertyId,10000+effectValue);
}
heroAllAttribute.put(targetPropertyId,effectValue);
iterator.remove();
}
for(Map.Entry<Integer,Integer> item : propertyPercentMap.entrySet()){
Integer propertyId = item.getKey();
Integer propertyValue = heroAllAttribute.get(propertyId);
heroAllAttribute.put(propertyId,propertyValue*item.getValue()/100);
heroAllAttribute.put(propertyId,propertyValue*item.getValue()/10000);
}
}