森罗扫荡,杀敌数问题

back_recharge
duhui 2022-08-27 13:26:11 +08:00
parent 258d1e88ce
commit f4d4134e69
3 changed files with 4 additions and 3 deletions

View File

@ -3198,7 +3198,7 @@ public class MapLogic {
BehaviorUtil.destoryApointXY(user, cell.getCellId()); BehaviorUtil.destoryApointXY(user, cell.getCellId());
} }
// 扫荡boss增加杀敌数量 // 扫荡boss增加杀敌数量
if (manager.getTrialInfo().getEnergy() < -2){ if (manager.getTrialInfo().getEnergy() != -2){
killNum++; killNum++;
} }
manager.updateTrialKillCount(trialInfo.getKillCount()+killNum); manager.updateTrialKillCount(trialInfo.getKillCount()+killNum);

View File

@ -15,7 +15,7 @@ public class TrialInfo extends MongoBase {
/** /**
* 0 * 0
* -1boss * -1boss
* 2 * -2
*/ */
private int energy; private int energy;
//进入副本英雄信息 //进入副本英雄信息

View File

@ -355,17 +355,18 @@ public class TowerMap extends AbstractMap {
eventMap.put(4,new ArrayList<>(cellMap4.keySet()));//怪物 eventMap.put(4,new ArrayList<>(cellMap4.keySet()));//怪物
eventMap.put(5,list);//宝箱 eventMap.put(5,list);//宝箱
mapManager.setTrialEnergy(0);
//大于10000要生成传送门 //大于10000要生成传送门
if(floor>10000){ if(floor>10000){
Cell transport = createTransport(floor); Cell transport = createTransport(floor);
newMap.put(transport.getCellId(),transport); newMap.put(transport.getCellId(),transport);
mapManager.setTrialEnergy(-2);
} }
SChallengeMapConfig challengeMapConfig = STableManager.getConfig(SChallengeMapConfig.class).get(sTrialConfig.getMapId()); SChallengeMapConfig challengeMapConfig = STableManager.getConfig(SChallengeMapConfig.class).get(sTrialConfig.getMapId());
int xy = CellUtil.xy2Pos(challengeMapConfig.getPosition()[0], challengeMapConfig.getPosition()[1]); int xy = CellUtil.xy2Pos(challengeMapConfig.getPosition()[0], challengeMapConfig.getPosition()[1]);
mapManager.setCurXY(xy); mapManager.setCurXY(xy);
mapManager.setMapInfo(newMap); mapManager.setMapInfo(newMap);
mapManager.setTrialEnergy(0);
mapManager.setCurMapId(sTrialConfig.getMapId()); mapManager.setCurMapId(sTrialConfig.getMapId());
mapManager.updateEventMap(eventMap); mapManager.updateEventMap(eventMap);
if(mapManager.getTowerUnusedBuffer()==null){ if(mapManager.getTowerUnusedBuffer()==null){