From 12e75f690e7a2a0e02a60b42bcfe4fd15fa89b43 Mon Sep 17 00:00:00 2001 From: wangyuan Date: Fri, 29 Mar 2019 15:47:49 +0800 Subject: [PATCH] fix --- .../ljsd/jieling/handler/map/MapLogic.java | 42 ++++++++----------- 1 file changed, 17 insertions(+), 25 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 6b2dc4814..7ea61446d 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 @@ -552,7 +552,7 @@ public class MapLogic { LOGGER.info("updateEvent =====>success<====== xy=>{}, getPointId=>{} eventId={}, mission=>{}, nextEventId=>{}, eventBehaviorCommon=>{} {} sOptionConfig.getReward()=>{}", mapManager.getCurXY(), cell == null ? 0 : cell.getPointId(), cell == null ? 0 : cell.getEventId(), eventUpdateResponse.getMissionList(), nextEventId, eventBehaviorCommon,eventUpdateResponse.getDrop(), sOptionConfig.getReward()); saveRefreshInfo(pointId, mapManager, mapPointConfig, nextEventId); - updateMapMission(mapManager,EventType.updateEvent,pointId,0); + updateMapMission(mapManager,EventType.updateEvent,cell == null ? 0 : cell.getEventId(),0); MessageUtil.sendMessage(session, 1, messageType.getNumber(), eventUpdateResponse.build(), true); } @@ -998,20 +998,23 @@ public class MapLogic { } } } - if(logic == MapMissionType.DIGGER_EVENT.getMissionTypeValue()){ - MapPointConfig mapPointConfig = MapPointConfig.getScMapEventMap().get(eventId); - if(mapPointConfig!=null&&mapPointConfig.getStyle() == 2){ - if(missionValue