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