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(),
|
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,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<targetEventValue){
|
|
||||||
allMissionProgress.put(missionId,missionValue+1);
|
|
||||||
needUpdate = true;
|
|
||||||
if(missionValue+1 == targetEventValue){
|
|
||||||
addScore+=score;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
//处理采矿 、宝箱
|
||||||
|
MapPointConfig mapPointConfig = MapPointConfig.getScMapEventMap().get(eventId);
|
||||||
|
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;
|
||||||
|
if(missionValue+1 == targetEventValue){
|
||||||
|
addScore+=score;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//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){
|
||||||
|
|
Loading…
Reference in New Issue