怪物战力显示

lvxinran 2019-09-01 14:49:49 +08:00
parent ab47c25f0c
commit f92a9499d5
2 changed files with 8 additions and 7 deletions

View File

@ -52,7 +52,7 @@ public class MapPointConfig implements BaseConfig{
private int[][] randomProbability;
private int isShowFightAbility;
private int[] isShowFightAbility;
@Override
public void init() throws Exception {
@ -95,7 +95,7 @@ public class MapPointConfig implements BaseConfig{
return randomProbability;
}
public int getIsShowFightAbility() {
public int[] getIsShowFightAbility() {
return isShowFightAbility;
}
}

View File

@ -419,11 +419,12 @@ public class MapLogic {
continue;
}
Cell cellValue = new Cell(xy, mapPointConfig.getInitialEventId(), mapPointConfig.getId());
if(xy>1000){
cellValue.setForce(123456);
}
if(mapPointConfig.getIsShowFightAbility()==1){
cellValue.setForce(123456);
if(mapPointConfig.getIsShowFightAbility()!=null&&mapPointConfig.getIsShowFightAbility().length>0){
int force = 0;
for(int i = 0 ; i <mapPointConfig.getIsShowFightAbility().length;i++){
force+=mapPointConfig.getIsShowFightAbility()[i];
}
cellValue.setForce(force);
}
newMap.put(xy, cellValue);
}