保存地图事件 bug
parent
51da0e539f
commit
3118cd9fd1
|
|
@ -564,8 +564,8 @@ 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);
|
||||
LOGGER.info("updatemap() uid=>{},nextEventId={},eventId={}", uid, nextEventId, cell == null ? 0 : cell.getEventId());
|
||||
saveRefreshInfo(pointId, mapManager, mapPointConfig, cell == null ? -1 : cell.getEventId());
|
||||
LOGGER.info("updatEvent() uid=>{},nextEventId={},eventId={}", uid, nextEventId, cell == null ? 0 : cell.getEventId());
|
||||
MessageUtil.sendMessage(session, 1, messageType.getNumber(), eventUpdateResponse.build(), true);
|
||||
}
|
||||
|
||||
|
|
@ -580,6 +580,9 @@ public class MapLogic {
|
|||
if (saveEventId == -1) {
|
||||
return;
|
||||
}
|
||||
if (saveEventId == nextEventId) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
crossMapCell.getDayRefreshs().put(optionId, nextEventId);
|
||||
}
|
||||
|
|
@ -589,6 +592,9 @@ public class MapLogic {
|
|||
if (saveEventId == -1) {
|
||||
return;
|
||||
}
|
||||
if (saveEventId == nextEventId) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
crossMapCell.getPermanents().put(optionId, nextEventId);
|
||||
}
|
||||
|
|
@ -943,7 +949,7 @@ public class MapLogic {
|
|||
updateMapMission(user.getMapManager(),EventType.updateEvent,cell.getEventId(),0);
|
||||
}
|
||||
}
|
||||
LOGGER.info("endFight() uid=>{},nextEventId", uid, nextEventId);
|
||||
LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
||||
updateMapMission(user.getMapManager(),EventType.fightEvent,0,monsterGroupId);
|
||||
// LOGGER.info("endFight() uid=>{} sMonsterGroup.getRewardgroup()=>{} drop=>{}", uid, sMonsterGroup.getRewardgroup(), fightEndResponse.getDrop());
|
||||
MessageUtil.sendMessage(session, 1, messageType.getNumber(), fightEndResponse.build(), true);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package com.ljsd.jieling.handler.map.behavior;
|
||||
|
||||
import com.ljsd.jieling.handler.map.Cell;
|
||||
import com.ljsd.jieling.handler.map.EventType;
|
||||
import com.ljsd.jieling.handler.map.MapLogic;
|
||||
import com.ljsd.jieling.handler.mission.CheckMissionReturn;
|
||||
|
|
|
|||
Loading…
Reference in New Issue