back_recharge
wangyuan 2019-03-29 15:47:49 +08:00
parent 271ffd9b3d
commit 12e75f690e
1 changed files with 17 additions and 25 deletions

View File

@ -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(), 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()); cell == null ? 0 : cell.getEventId(), eventUpdateResponse.getMissionList(), nextEventId, eventBehaviorCommon,eventUpdateResponse.getDrop(), sOptionConfig.getReward());
saveRefreshInfo(pointId, mapManager, mapPointConfig, nextEventId); 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); MessageUtil.sendMessage(session, 1, messageType.getNumber(), eventUpdateResponse.build(), true);
} }
@ -998,9 +998,11 @@ public class MapLogic {
} }
} }
} }
if(logic == MapMissionType.DIGGER_EVENT.getMissionTypeValue()){
//处理采矿 、宝箱
MapPointConfig mapPointConfig = MapPointConfig.getScMapEventMap().get(eventId); MapPointConfig mapPointConfig = MapPointConfig.getScMapEventMap().get(eventId);
if(mapPointConfig!=null&&mapPointConfig.getStyle() == 2){ if(mapPointConfig!=null){
if((mapPointConfig.getStyle() == 2 && logic == MapMissionType.DIGGER_EVENT.getMissionTypeValue() )|| (mapPointConfig.getStyle() == 7 && logic == MapMissionType.OPEN_BOX.getMissionTypeValue())){
if(missionValue<targetEventValue){ if(missionValue<targetEventValue){
allMissionProgress.put(missionId,missionValue+1); allMissionProgress.put(missionId,missionValue+1);
needUpdate = true; needUpdate = true;
@ -1009,9 +1011,10 @@ public class MapLogic {
} }
} }
} }
}
} }
}
//todo 战斗结束处理 //todo 战斗结束处理
if(eventType == EventType.fightEvent){ if(eventType == EventType.fightEvent){
@ -1058,17 +1061,6 @@ public class MapLogic {
} }
} }
} }
//todo 开宝箱
if(logic == MapMissionType.OPEN_BOX.getMissionTypeValue()){
if(missionValue<targetEventValue){
allMissionProgress.put(missionId,missionValue+1);
needUpdate = true;
if(missionValue+1 == targetEventValue){
addScore+=score;
}
}
}
} }
if(addScore!=0){ if(addScore!=0){