计算属性
parent
b25d7067ba
commit
85cbae09db
|
@ -753,11 +753,15 @@ public class HeroLogic {
|
|||
if(propertyValue == null){
|
||||
propertyValue =0;
|
||||
}
|
||||
|
||||
if(SPropertyConfig.getsPropertyConfigByPID(templatePropetyId).getIfFormula() == 1){
|
||||
SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByPID(templatePropetyId);
|
||||
if(sPropertyConfig.getIfFormula() == 1){
|
||||
sb.append(propertyValue*0.1/(hero.getLevel()+10)/100).append(DIVISION);
|
||||
}else{
|
||||
sb.append(propertyValue).append(DIVISION);
|
||||
if(sPropertyConfig.getStyle() == GlobalsDef.PERCENT_TYPE){
|
||||
sb.append(propertyValue/100).append(DIVISION);
|
||||
}else{
|
||||
sb.append(propertyValue).append(DIVISION);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue