修改计算
parent
b0aceefb4a
commit
fb2b2ff379
|
@ -1007,7 +1007,7 @@ public class HeroLogic {
|
|||
for(Map.Entry<Integer,Integer> item : propertyPercentMap.entrySet()){
|
||||
Integer propertyId = item.getKey();
|
||||
Integer propertyValue = heroAllAttribute.get(propertyId);
|
||||
heroAllAttribute.put(propertyId,propertyValue*item.getValue()/10000);
|
||||
heroAllAttribute.put(propertyId,(int)(propertyValue/10000f*item.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1066,7 +1066,7 @@ public class ItemUtil {
|
|||
SPrivilegeTypeConfig sPrivilegeTypeConfig = SPrivilegeTypeConfig.getsPrivilegeTypeConfigMap().get(privigeId);
|
||||
int dataType = sPrivilegeTypeConfig.getIfFloat();
|
||||
if(dataType == GlobalsDef.PERCENT_TYPE){
|
||||
sourceNum=privigeValue * sourceNum / 10000;
|
||||
sourceNum=(int)(privigeValue / 10000f * sourceNum);
|
||||
}else{
|
||||
sourceNum+=privigeValue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue