fix force
parent
da392b4eb9
commit
16b8210460
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue