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