fix force

back_recharge
wangyuan 2019-07-04 21:44:13 +08:00
parent da392b4eb9
commit 16b8210460
1 changed files with 3 additions and 3 deletions

View File

@ -1045,17 +1045,17 @@ public class HeroLogic {
double result = 0;
for(Map.Entry<Integer, Integer> item : heroAllAttribute.entrySet()){
Integer propertyId = item.getKey();
Integer propertyValue = item.getValue();
float propertyValue = item.getValue();
if(propertyId == HeroAttributeEnum.EquipForce.getPropertyId()){
LOGGER.info("the equipScore={}",propertyValue);
continue;
}
SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByPID(propertyId);
if(sPropertyConfig.getStyle() == GlobalsDef.PERCENT_TYPE){
propertyValue = propertyValue / 10000;
propertyValue = propertyValue / 10000F;
}
float score = sPropertyConfig.getScore();
// LOGGER.info("the value is ={},propertyValue={},score={}",propertyValue*score,propertyValue,score);
LOGGER.info("the value is ={},propertyValue={},score={}",propertyValue*score,propertyValue,score);
result += propertyValue*score;
}
return (int)result;