森罗 无尽bug修改
parent
d6775fc511
commit
8aa67eb6bf
|
@ -122,6 +122,7 @@ public class EndlessMap extends AbstractMap{
|
|||
cellToProto(cells, entry);
|
||||
}
|
||||
mapManager.setCurMapType(type);
|
||||
mapManager.setWalkCells(endlessMapInfo.getWalkCell());
|
||||
// mapEnterResponse.addHeroInfos();
|
||||
//容错代码
|
||||
if(mapManager.getCurXY()==0){
|
||||
|
@ -442,6 +443,9 @@ public class EndlessMap extends AbstractMap{
|
|||
|
||||
}
|
||||
}
|
||||
// SChallengeMapConfig challengeMapConfig = STableManager.getConfig(SChallengeMapConfig.class).get(mapId);
|
||||
// int xy = CellUtil.xy2Pos(challengeMapConfig.getPosition()[0], challengeMapConfig.getPosition()[1]);
|
||||
// mapManager.setCurXY(xy);
|
||||
mapManager.setCurMapId(mapId);
|
||||
initMapMission(user,newMap);
|
||||
}
|
||||
|
|
|
@ -618,7 +618,7 @@ public class TowerMap extends AbstractMap {
|
|||
Map<Integer,SEventPointConfig> sEventPointConfig = STableManager.getConfig(SEventPointConfig.class);
|
||||
Set<Integer> destoryCell = new HashSet<>();
|
||||
Map<Integer, MapPointConfig> configMap = MapPointConfig.scMapEventMap;
|
||||
int mosterAmount = 0;
|
||||
int monsterAmount = 0;
|
||||
Map<Integer, Cell> mapInfo = mapManager.getMapInfo();
|
||||
List<Integer> rewardResult= new ArrayList<>();
|
||||
for(Map.Entry<Integer,Cell> entry:mapInfo.entrySet()){
|
||||
|
@ -627,7 +627,7 @@ public class TowerMap extends AbstractMap {
|
|||
if(entry.getValue().getEventId() == -1){
|
||||
continue;
|
||||
}
|
||||
mosterAmount++;
|
||||
monsterAmount++;
|
||||
|
||||
int groupId = sEventPointConfig.get(entry.getValue().getEventId()).getOption()[0];
|
||||
LOGGER.info(String.valueOf(groupId));
|
||||
|
@ -646,7 +646,7 @@ public class TowerMap extends AbstractMap {
|
|||
mapManager.setTrialEnergy(100);
|
||||
|
||||
Cell cell = callChief(user);
|
||||
LOGGER.info("怪物数量:{}",mosterAmount);
|
||||
LOGGER.info("怪物数量:{}",monsterAmount);
|
||||
int[] bombReward = rewardResult.stream().mapToInt(Integer::valueOf).toArray();
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, bombReward, 1,0,BIReason.BOMB_REWARD);
|
||||
|
||||
|
@ -657,6 +657,7 @@ public class TowerMap extends AbstractMap {
|
|||
response.setEssenceValue(-1);
|
||||
response.setCell(CBean2Proto.getCell(cell));
|
||||
response.setDrop(drop);
|
||||
response.setMonsterNum(monsterAmount);
|
||||
MessageUtil.sendMessage(session,1,messageType.getNumber(),response.build(),true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue