force
parent
f48f51cc61
commit
7f0b05baec
|
|
@ -933,17 +933,17 @@ public class HeroLogic {
|
||||||
Integer targetValue = heroAllAttribute.get(targetPropertyId);
|
Integer targetValue = heroAllAttribute.get(targetPropertyId);
|
||||||
if(style == GlobalsDef.ABSOLUTE_TYPE){
|
if(style == GlobalsDef.ABSOLUTE_TYPE){
|
||||||
effectValue += targetValue;
|
effectValue += targetValue;
|
||||||
}else{
|
|
||||||
propertyPercentMap.put(targetPropertyId,100+effectValue);
|
|
||||||
}
|
|
||||||
heroAllAttribute.put(targetPropertyId,effectValue);
|
heroAllAttribute.put(targetPropertyId,effectValue);
|
||||||
|
}else{
|
||||||
|
propertyPercentMap.put(targetPropertyId,10000+effectValue);
|
||||||
|
}
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Map.Entry<Integer,Integer> item : propertyPercentMap.entrySet()){
|
for(Map.Entry<Integer,Integer> item : propertyPercentMap.entrySet()){
|
||||||
Integer propertyId = item.getKey();
|
Integer propertyId = item.getKey();
|
||||||
Integer propertyValue = heroAllAttribute.get(propertyId);
|
Integer propertyValue = heroAllAttribute.get(propertyId);
|
||||||
heroAllAttribute.put(propertyId,propertyValue*item.getValue()/100);
|
heroAllAttribute.put(propertyId,propertyValue*item.getValue()/10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue