fix force

back_recharge
wangyuan 2019-06-29 16:22:34 +08:00
parent 51257cda85
commit 92d17073ae
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.ljsd.jieling.logic.hero;
import com.ljsd.GameApplication;
import com.ljsd.common.mogodb.util.GlobalData;
import com.ljsd.jieling.chat.logic.ChatLogic;
import com.ljsd.jieling.config.*;
import com.ljsd.jieling.core.GlobalsDef;
@ -1050,8 +1051,11 @@ public class HeroLogic {
continue;
}
SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByPID(propertyId);
if(sPropertyConfig.getStyle() == GlobalsDef.PERCENT_TYPE){
propertyValue = propertyValue / 10000;
}
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;