怪物战力显示

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

View File

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