属性修改
parent
0d473165c8
commit
983d1d85ce
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue