From ec27295b72556ec6f858db787210c36b76076a92 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Tue, 2 Jul 2019 22:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=BF=AE=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E9=87=8D=E7=BD=AEbuff=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ljsd/jieling/handler/map/MapLogic.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java index 2ea95feb6..3565f0a38 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java @@ -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 xySet = CellUtil.getSurroundPos(mapSize[0],mapSize[1],mapManager.getCurXY()); LOGGER.info(xySet.toString()); Map mapInfo = mapManager.getMapInfo(); @@ -2130,7 +2130,7 @@ public class MapLogic { Map 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 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);