森罗幻境扫荡,boss杀敌数
parent
8508c685db
commit
b0114b8d4c
|
|
@ -3184,18 +3184,24 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 怪物
|
// 怪物
|
||||||
|
int killNum = 0;//杀敌数量
|
||||||
List<Integer> monsterCell = eventMap.getOrDefault(4, new ArrayList<>());
|
List<Integer> monsterCell = eventMap.getOrDefault(4, new ArrayList<>());
|
||||||
for (Integer key : monsterCell) {
|
for (Integer key : monsterCell) {
|
||||||
Cell cell = mapInfo.get(key);
|
Cell cell = mapInfo.get(key);
|
||||||
if (cell == null || cell.getEventId() == -1){
|
if (cell == null || cell.getEventId() == -1){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
manager.updateTrialKillCount(trialInfo.getKillCount()+1);
|
killNum++;
|
||||||
SEventPointConfig point = eventPointConfig.get(cell.getEventId());
|
SEventPointConfig point = eventPointConfig.get(cell.getEventId());
|
||||||
SMonsterGroup monsterGroup = SMonsterGroup.getsMonsterGroupMap().get(point.getOption()[0]);
|
SMonsterGroup monsterGroup = SMonsterGroup.getsMonsterGroupMap().get(point.getOption()[0]);
|
||||||
ItemUtil.drop(user, monsterGroup.getRewardgroup(), drop, 1, 0, BIReason.MAP_FAST_FIGHT_REWARD);
|
ItemUtil.drop(user, monsterGroup.getRewardgroup(), drop, 1, 0, BIReason.MAP_FAST_FIGHT_REWARD);
|
||||||
BehaviorUtil.destoryApointXY(user, cell.getCellId());
|
BehaviorUtil.destoryApointXY(user, cell.getCellId());
|
||||||
}
|
}
|
||||||
|
// 扫荡,boss,增加杀敌数量
|
||||||
|
if (manager.getTrialInfo().getEnergy() < -2){
|
||||||
|
killNum++;
|
||||||
|
}
|
||||||
|
manager.updateTrialKillCount(trialInfo.getKillCount()+killNum);
|
||||||
|
|
||||||
// 宝箱
|
// 宝箱
|
||||||
List<Integer> boxCell = eventMap.getOrDefault(5, new ArrayList<>());
|
List<Integer> boxCell = eventMap.getOrDefault(5, new ArrayList<>());
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,11 @@ import java.util.*;
|
||||||
public class TrialInfo extends MongoBase {
|
public class TrialInfo extends MongoBase {
|
||||||
//默认一层
|
//默认一层
|
||||||
private int floor = 1;
|
private int floor = 1;
|
||||||
|
/**
|
||||||
|
* 0:闯关
|
||||||
|
* -1:boss
|
||||||
|
* 2:传送门
|
||||||
|
*/
|
||||||
private int energy;
|
private int energy;
|
||||||
//进入副本英雄信息
|
//进入副本英雄信息
|
||||||
private Map<String,TrailHero> heroInfo = new HashMap<>(5);
|
private Map<String,TrailHero> heroInfo = new HashMap<>(5);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue