diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java index 830354d9a..8b23f91a6 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java @@ -1045,17 +1045,17 @@ public class HeroLogic { double result = 0; for(Map.Entry 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;