怪物战力显示
parent
ab47c25f0c
commit
f92a9499d5
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue