属性修改

back_recharge
wangyuan 2019-05-11 11:39:45 +08:00
parent 0d473165c8
commit 983d1d85ce
2 changed files with 9 additions and 2 deletions

View File

@ -19,6 +19,8 @@ public class SPropertyConfig implements BaseConfig {
private int targetPropertyId;
private int ifFormula;
private static Map<Integer,SPropertyConfig> sPropertyConfigByPIDMap;
@ -58,4 +60,8 @@ public class SPropertyConfig implements BaseConfig {
public int getTargetPropertyId() {
return targetPropertyId;
}
public int getIfFormula() {
return ifFormula;
}
}

View File

@ -746,8 +746,9 @@ public class HeroLogic {
if(propertyValue == null){
propertyValue =0;
}
if(templatePropetyId>100){
sb.append(propertyValue*0.1/(hero.getLevel()+10)).append(DIVISION);
if(SPropertyConfig.getsPropertyConfigByPID(templatePropetyId).getIfFormula() == 1){
sb.append(propertyValue*0.1/(hero.getLevel()+10)/100).append(DIVISION);
}else{
sb.append(propertyValue).append(DIVISION);
}