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 5158eea04..a49c97540 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 @@ -717,110 +717,6 @@ public class MapLogic { return openMission; } -// /** -// * 退出地图 -// * -// * @param session -// * @param messageType -// * @throws Exception -// */ -// public void outMap(ISession session,int outType, int curXY,MessageTypeProto.MessageType messageType) throws Exception { -// int uid = session.getUid(); -// User user = UserManager.getUser(uid); -// MapManager mapManager = user.getMapManager(); -// SChallengeConfig challengeConfig = SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId()); -// if(mapManager.getCurMapId()==0){ -// mapManager.setCurXY(0); -// MessageUtil.sendMessage(session,1,messageType.getNumber(),null,true); -// return; -// } -// -// MapInfoProto.MapOutResponse.Builder builder = MapInfoProto.MapOutResponse.newBuilder(); -// //无尽副本 -// if(challengeConfig.getType()==4) { -// if(outType==1){ -//// mapManager.updateEndlessLocation(0); -//// int[][] cost = new int[1][]; -//// int costId = SChallengeSetting.getChallengeSetting().getActionPowerId(); -//// int costNum = SEndlessMapConfig.sEndlessMapConfigMap.get(mapId).getTeleportCost(); -//// int costNum2 = SEndlessMapConfig.sEndlessMapConfigMap.get(targetMapId).getTeleportCost(); -//// int resultCost = Math.abs(costNum-costNum2); -//// mapManager.updateEndlessConsumeExecution(mapManager.getEndlessMapInfo().getConsumeExecution()+resultCost); -//// cost[0]= new int[]{costId,resultCost};//Math.abs(costNum-costNum) -//// boolean costResult = ItemUtil.itemCost(user,cost,BIReason.ENDLESS_CONSUME_EXECUTION,1); -//// mapManager.setCurMapId(0); -//// mapManager.setCurXY(0); -//// mapManager.updateEndlessLocation(0); -//// -//// if(!costResult){ -//// MessageUtil.sendErrorResponse(session,0,messageType.getNumber(),"行动力不足!"); -//// return; -//// } -//// LOGGER.info("传送消耗{}行动力"+Math.abs(costNum-costNum2)); -// }else{ -// if(MapLogic.endlessSeason!=mapManager.getEndlessMapInfo().getSeason()){ -// mapManager.updateEndlessLocation(0); -// }else{ -// mapManager.updateEndlessLocation(curXY); -// } -// mapManager.updateEndlessConsumeExecution(0); -// mapManager.updateEndlessFightCount(0); -// } -// //无尽副本信息保存 -// mapManager.endlessWalkCellSave(mapManager.getWalkCells()); -// mapManager.endlessMapInfoSave(mapManager.getMapInfo()); -// } -// if(outType == 0||mapManager.getTower()-1==STrialConfig.getHighestTower()){ -// if(mapManager.getTowerUnusedBuffer()!=null){ -// mapManager.setTowerUnusedBuffer(new HashMap<>()); -// } -// LOGGER.info("退出地图"); -// if(challengeConfig.getType()==2){ -// if(mapManager.getTower()>=1){ -// mapManager.setMapIntoFlag(1); -// if(mapManager.getTower()==STrialConfig.getHighestTower()){ -// mapManager.setHighestTower(mapManager.getTower()); -// if(TowerRankUtil.getRankNumber(mapManager.getTower(),(int)(mapManager.getCurrTowerTime()/1000))>RedisUtil.getInstence().getZSetScore(RedisKey.TOWER_RANK, "", String.valueOf(user.getId()))){ -// RedisUtil.getInstence().zsetAddOne(RedisKey.getKey(RedisKey.TOWER_RANK,"",false),String.valueOf(user.getId()),TowerRankUtil.getRankNumber(mapManager.getTower(),(int)(mapManager.getCurrTowerTime()/1000))); -// } -// } -// } -// } -// -// mapManager.setEssenceValue(0); -// mapManager.setCurrTowerTime(0); -// boolean result = onlyLevelMap(user, true); -// if (!result) { -// throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE); -// } -// } -// -// int time = (int)(mapManager.getCurrTowerTime())/1000; -// builder.setUseTime(time); -// LOGGER.info("当前层使用时间{}",time); -// //清除副本中增加的怪物被动技能 -// user.getMapManager().removeMonsterTempSkill(); -// //精英本功绩清除计数 -// if(challengeConfig.getType()==3){ -// int[] achievementRefreshType = STableManager.getFigureConfig(CommonStaticConfig.class).getGameSetting().getAchievementRefreshType(); -// List accomplishmentConfig = SAccomplishmentConfig.getsAccomplishmentConfigByMapId(challengeConfig.getMapId()); -// MapMission mapMission = mapManager.getCopyMissionProgresById(challengeConfig.getMapId()); -// Map copyMissionProgresById = mapMission.getAllMissionProgress(); -// for(SAccomplishmentConfig accomplishment:accomplishmentConfig){ -// for(int i = 0 ; i mapInstence = new HashMap<>();