无尽副本修改

back_recharge
lvxinran 2019-08-05 15:43:29 +08:00
parent 981c3f163a
commit 8f588acb05
1 changed files with 5 additions and 5 deletions

View File

@ -2365,9 +2365,9 @@ public class MapLogic {
int[][] bossType = config.getRandomBossType();
type = MathUtils.randomFromWeight(bossType);
if(mapManager.getTower()%5!=0){
type = 3;
}
// if(mapManager.getTower()%5!=0){
// type = 3;
// }
LOGGER.info("trigger!!!!!!!!!!!!!!!!!-------->{},{}",CellUtil.pos2XY(mapManager.getCurXY())[0],CellUtil.pos2XY(mapManager.getCurXY())[1]);
int[][][] pointId = config.getRandomMapPointId();
int mapId = config.getMapId();
@ -2870,8 +2870,8 @@ public class MapLogic {
User user = UserManager.getUser(session.getUid());
MapManager mapManager = user.getMapManager();
EndlessMapInfo endlessMapInfo = mapManager.getEndlessMapInfo();
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(endlessMapInfo.getCurMapId());
mapManager.updateEndlessLocation(CellUtil.xy2Pos(sChallengeMapConfig.getPosition()[0],sChallengeMapConfig.getPosition()[1]));
// SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(endlessMapInfo.getCurMapId());
// mapManager.updateEndlessLocation(CellUtil.xy2Pos(sChallengeMapConfig.getPosition()[0],sChallengeMapConfig.getPosition()[1]));
for(Map.Entry<String,EndlessHero> entry:endlessMapInfo.getEndlessHeroInfo().entrySet()){
mapManager.updateEndlessHeroHp(entry.getKey(),entry.getValue().getMaxHp());
}