From b0114b8d4c2d09db6f5e0a52c0841de32e22f1a2 Mon Sep 17 00:00:00 2001 From: duhui Date: Mon, 22 Aug 2022 17:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=AE=E7=BD=97=E5=B9=BB=E5=A2=83=E6=89=AB?= =?UTF-8?q?=E8=8D=A1=EF=BC=8Cboss=E6=9D=80=E6=95=8C=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ljsd/jieling/handler/map/MapLogic.java | 8 +++++++- .../main/java/com/ljsd/jieling/handler/map/TrialInfo.java | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java index b2b26cfe6..2b987de43 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java @@ -3184,18 +3184,24 @@ public class MapLogic { } // 怪物 + int killNum = 0;//杀敌数量 List monsterCell = eventMap.getOrDefault(4, new ArrayList<>()); for (Integer key : monsterCell) { Cell cell = mapInfo.get(key); if (cell == null || cell.getEventId() == -1){ continue; } - manager.updateTrialKillCount(trialInfo.getKillCount()+1); + killNum++; SEventPointConfig point = eventPointConfig.get(cell.getEventId()); SMonsterGroup monsterGroup = SMonsterGroup.getsMonsterGroupMap().get(point.getOption()[0]); ItemUtil.drop(user, monsterGroup.getRewardgroup(), drop, 1, 0, BIReason.MAP_FAST_FIGHT_REWARD); BehaviorUtil.destoryApointXY(user, cell.getCellId()); } + // 扫荡,boss,增加杀敌数量 + if (manager.getTrialInfo().getEnergy() < -2){ + killNum++; + } + manager.updateTrialKillCount(trialInfo.getKillCount()+killNum); // 宝箱 List boxCell = eventMap.getOrDefault(5, new ArrayList<>()); diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/TrialInfo.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/TrialInfo.java index e5ab4b36a..9ccf48ab6 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/TrialInfo.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/TrialInfo.java @@ -12,7 +12,11 @@ import java.util.*; public class TrialInfo extends MongoBase { //默认一层 private int floor = 1; - + /** + * 0:闯关 + * -1:boss + * 2:传送门 + */ private int energy; //进入副本英雄信息 private Map heroInfo = new HashMap<>(5);