日志修改,重置buff修改
parent
33cd931e82
commit
ec27295b72
|
@ -2110,7 +2110,7 @@ public class MapLogic {
|
|||
|
||||
type = MathUtils.randomFromWeight(bossType);
|
||||
if(mapManager.getTower()<=3){
|
||||
type = 2;
|
||||
type = 3;
|
||||
}
|
||||
// }else if(mapManager.getTower()==2){
|
||||
// type = 3;
|
||||
|
@ -2121,7 +2121,7 @@ public class MapLogic {
|
|||
int mapId = config.getMapId();
|
||||
SChallengeMapConfig challengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapId);
|
||||
int[] mapSize = challengeMapConfig.getSize();
|
||||
LOGGER.info("width:"+String.valueOf(mapSize[0])+",height:"+String.valueOf(mapSize[1])+",当前:"+CellUtil.pos2XY(mapManager.getCurXY())[0]+"==="+CellUtil.pos2XY(mapManager.getCurXY())[1]);
|
||||
LOGGER.info("width:{},height:{},当前:{}==={}",String.valueOf(mapSize[0]),String.valueOf(mapSize[1]),CellUtil.pos2XY(mapManager.getCurXY())[0],CellUtil.pos2XY(mapManager.getCurXY())[1]);
|
||||
Set<Integer> xySet = CellUtil.getSurroundPos(mapSize[0],mapSize[1],mapManager.getCurXY());
|
||||
LOGGER.info(xySet.toString());
|
||||
Map<Integer, Cell> mapInfo = mapManager.getMapInfo();
|
||||
|
@ -2130,7 +2130,7 @@ public class MapLogic {
|
|||
Map<Integer, MapPointConfig> pointConfig = MapPointConfig.scMapEventMap;
|
||||
while (it.hasNext()){
|
||||
Integer n = it.next();
|
||||
LOGGER.info("遍历"+CellUtil.pos2XY(n)[0]+","+CellUtil.pos2XY(n)[1]);
|
||||
LOGGER.info("遍历{},{}",CellUtil.pos2XY(n)[0],CellUtil.pos2XY(n)[1]);
|
||||
for(Map.Entry<Integer,Cell> cellEntry:mapInfo.entrySet()){
|
||||
if(cellEntry.getKey().equals(n)) {
|
||||
if (pointConfig.get(cellEntry.getValue().getPointId()).getStyle() != 0) {
|
||||
|
@ -2140,13 +2140,13 @@ public class MapLogic {
|
|||
}
|
||||
}
|
||||
}
|
||||
LOGGER.info("怪物可出现格子数量"+String.valueOf(xySet.size()));
|
||||
LOGGER.info("怪物可出现格子数量{}",String.valueOf(xySet.size()));
|
||||
int random = MathUtils.randomInt(xySet.size());
|
||||
LOGGER.info("random"+String.valueOf(random));
|
||||
int i = 0;
|
||||
int xyResult = 0;
|
||||
for(Integer xy:xySet){
|
||||
LOGGER.info("怪物位置:"+String.valueOf(CellUtil.pos2XY(xy)[0])+","+String.valueOf(CellUtil.pos2XY(xy)[1]));
|
||||
LOGGER.info("怪物位置:{},{}",String.valueOf(CellUtil.pos2XY(xy)[0]),String.valueOf(CellUtil.pos2XY(xy)[1]));
|
||||
if(random==i){
|
||||
xyResult = xy;
|
||||
break;
|
||||
|
@ -2157,7 +2157,7 @@ public class MapLogic {
|
|||
// xyResult
|
||||
mapManager.setBossXY(xyResult);
|
||||
int randomPoint = MathUtils.randomFromWeight(pointId[type-1]);
|
||||
LOGGER.info("随机事件id:"+randomPoint);
|
||||
LOGGER.info("随机事件id:==>{}",randomPoint);
|
||||
//buff处理
|
||||
// if(type==3){
|
||||
// if(currTower>0){
|
||||
|
@ -2227,9 +2227,9 @@ public class MapLogic {
|
|||
y[i] = rewardRevert.get(i);
|
||||
}
|
||||
rewardMap.put(y,1f);
|
||||
LOGGER.info("怪物数量:"+mosterAmount);
|
||||
LOGGER.info("怪物数量:{}",mosterAmount);
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, rewardMap, BIReason.BOMB_REWARD);
|
||||
LOGGER.info(String.valueOf("几种:"+mapInfo.size()));
|
||||
LOGGER.info("几种:{}",mapInfo.size());
|
||||
int[] x = Arrays.stream(destoryCell.toArray(new Integer[destoryCell.size()])).mapToInt(Integer::valueOf).toArray();
|
||||
|
||||
BehaviorUtil.destoryPoints(user,x);
|
||||
|
@ -2269,7 +2269,7 @@ public class MapLogic {
|
|||
}else{
|
||||
mapManager.setTower(1);
|
||||
}
|
||||
|
||||
mapManager.setFoodBufferMap(new HashMap<>());
|
||||
mapManager.setFightCount(0);
|
||||
mapManager.setEssenceValue(0);
|
||||
mapManager.setTowerUnusedBuffer(null);
|
||||
|
|
Loading…
Reference in New Issue