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 26edb1e13..d75461d82 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 @@ -1397,9 +1397,9 @@ public class MapLogic { } int destoryXY = mapManager.getTriggerXY(); - if(SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId()).getType()==4) { - endlessRefreshMonster(session,destoryXY); - } +// if(SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId()).getType()==4) { +// endlessRefreshMonster(session,destoryXY); +// } //删点之前进行查找 if (sChallengeConfig.getType() == 2) { STrialConfig sTrialConfig = STrialConfig.sTrialConfigMap.get(mapManager.getTrialInfo().getFloor()); @@ -2940,46 +2940,46 @@ public class MapLogic { * @param triggerXY * @throws Exception */ - public void endlessRefreshMonster(ISession session,int triggerXY) throws Exception { - User user = UserManager.getUser(session.getUid()); - MapManager mapManager = user.getMapManager(); - Cell cell = mapManager.getMapInfo().get(triggerXY); - MapPointConfig mapPointConfig = MapPointConfig.getScMapEventMap().get(cell.getPointId()); - if(mapPointConfig.getStyle()==1){ - Map map= SCMap.sCMap.get(mapManager.getCurMapId()); - List points = new ArrayList<>(); - for(Map.Entry entry:map.entrySet()){ - if(entry.getValue().getEvent()!=cell.getPointId()){ - continue; - } - boolean flagToAddMonster = true; - int[][] groups = entry.getValue().getGroups(); - for(int i = 0;i0){ - //无尽副本随机空地刷新小怪 - int cellPos = points.get(MathUtils.randomInt(points.size())); - Cell addCell = new Cell(cellPos,mapPointConfig.getInitialEventId(),mapPointConfig.getId()); - LOGGER.info("刷新位置为{},{}",CellUtil.pos2XY(cellPos)[0],CellUtil.pos2XY(cellPos)[1]); - mapManager.addOrUpdateCell(cellPos,addCell); - MapInfoProto.RefreshMonsterResponse monsterResponse = MapInfoProto.RefreshMonsterResponse.newBuilder().addCell(CBean2Proto.getCell(addCell)).build(); - MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.ENDLESS_MONSTER_REFRESH_INDICATION_VALUE,monsterResponse,true); - } - BehaviorUtil.destoryApointXY(user, triggerXY); - } - } +// public void endlessRefreshMonster(ISession session,int triggerXY) throws Exception { +// User user = UserManager.getUser(session.getUid()); +// MapManager mapManager = user.getMapManager(); +// Cell cell = mapManager.getMapInfo().get(triggerXY); +// MapPointConfig mapPointConfig = MapPointConfig.getScMapEventMap().get(cell.getPointId()); +// if(mapPointConfig.getStyle()==1){ +// Map map= SCMap.sCMap.get(mapManager.getCurMapId()); +// List points = new ArrayList<>(); +// for(Map.Entry entry:map.entrySet()){ +// if(entry.getValue().getEvent()!=cell.getPointId()){ +// continue; +// } +// boolean flagToAddMonster = true; +// int[][] groups = entry.getValue().getGroups(); +// for(int i = 0;i0){ +// //无尽副本随机空地刷新小怪 +// int cellPos = points.get(MathUtils.randomInt(points.size())); +// Cell addCell = new Cell(cellPos,mapPointConfig.getInitialEventId(),mapPointConfig.getId()); +// LOGGER.info("刷新位置为{},{}",CellUtil.pos2XY(cellPos)[0],CellUtil.pos2XY(cellPos)[1]); +// mapManager.addOrUpdateCell(cellPos,addCell); +// MapInfoProto.RefreshMonsterResponse monsterResponse = MapInfoProto.RefreshMonsterResponse.newBuilder().addCell(CBean2Proto.getCell(addCell)).build(); +// MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.ENDLESS_MONSTER_REFRESH_INDICATION_VALUE,monsterResponse,true); +// } +// BehaviorUtil.destoryApointXY(user, triggerXY); +// } +// } /** * 设置无尽副本是否跳过战斗 diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/mapType/EndlessMap.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/mapType/EndlessMap.java index c400b7a18..d231595a9 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/mapType/EndlessMap.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/mapType/EndlessMap.java @@ -369,11 +369,10 @@ public class EndlessMap extends AbstractMap{ boolean flagToAddMonster = true; int[][] groups = entry.getValue().getGroups(); for(int i = 0;i