force
parent
f48f51cc61
commit
7f0b05baec
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue