属性修改

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

View File

@ -746,8 +746,9 @@ public class HeroLogic {
if(propertyValue == null){ if(propertyValue == null){
propertyValue =0; 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{ }else{
sb.append(propertyValue).append(DIVISION); sb.append(propertyValue).append(DIVISION);
} }