森罗扫荡,杀敌数问题
parent
258d1e88ce
commit
f4d4134e69
|
@ -3198,7 +3198,7 @@ public class MapLogic {
|
|||
BehaviorUtil.destoryApointXY(user, cell.getCellId());
|
||||
}
|
||||
// 扫荡,boss,增加杀敌数量
|
||||
if (manager.getTrialInfo().getEnergy() < -2){
|
||||
if (manager.getTrialInfo().getEnergy() != -2){
|
||||
killNum++;
|
||||
}
|
||||
manager.updateTrialKillCount(trialInfo.getKillCount()+killNum);
|
||||
|
|
|
@ -15,7 +15,7 @@ public class TrialInfo extends MongoBase {
|
|||
/**
|
||||
* 0:闯关
|
||||
* -1:boss
|
||||
* 2:传送门
|
||||
* -2:传送门
|
||||
*/
|
||||
private int energy;
|
||||
//进入副本英雄信息
|
||||
|
|
|
@ -355,17 +355,18 @@ public class TowerMap extends AbstractMap {
|
|||
eventMap.put(4,new ArrayList<>(cellMap4.keySet()));//怪物
|
||||
eventMap.put(5,list);//宝箱
|
||||
|
||||
mapManager.setTrialEnergy(0);
|
||||
//大于10000要生成传送门
|
||||
if(floor>10000){
|
||||
Cell transport = createTransport(floor);
|
||||
newMap.put(transport.getCellId(),transport);
|
||||
mapManager.setTrialEnergy(-2);
|
||||
}
|
||||
|
||||
SChallengeMapConfig challengeMapConfig = STableManager.getConfig(SChallengeMapConfig.class).get(sTrialConfig.getMapId());
|
||||
int xy = CellUtil.xy2Pos(challengeMapConfig.getPosition()[0], challengeMapConfig.getPosition()[1]);
|
||||
mapManager.setCurXY(xy);
|
||||
mapManager.setMapInfo(newMap);
|
||||
mapManager.setTrialEnergy(0);
|
||||
mapManager.setCurMapId(sTrialConfig.getMapId());
|
||||
mapManager.updateEventMap(eventMap);
|
||||
if(mapManager.getTowerUnusedBuffer()==null){
|
||||
|
|
Loading…
Reference in New Issue