fix
parent
271ffd9b3d
commit
12e75f690e
|
@ -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,9 +998,11 @@ public class MapLogic {
|
|||
}
|
||||
}
|
||||
}
|
||||
if(logic == MapMissionType.DIGGER_EVENT.getMissionTypeValue()){
|
||||
|
||||
//处理采矿 、宝箱
|
||||
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){
|
||||
allMissionProgress.put(missionId,missionValue+1);
|
||||
needUpdate = true;
|
||||
|
@ -1009,9 +1011,10 @@ public class MapLogic {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//todo 战斗结束处理
|
||||
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){
|
||||
|
|
Loading…
Reference in New Issue