地图探索度
parent
ed17b87905
commit
587cacade2
|
@ -526,7 +526,8 @@ public class MapLogic {
|
|||
targetEventId = nextEventId;
|
||||
}
|
||||
|
||||
updateMapMission(mapManager,EventType.updateEvent, targetEventId,0);
|
||||
updateMapMission(mapManager,EventType.updateEvent, optionId,0);
|
||||
LOGGER.info("optionId={}" ,optionId);
|
||||
int totalWeight = updateMapMission(mapManager,EventType.updateEvent, pointId,0);
|
||||
if (totalWeight >= 100) {
|
||||
CrossInfo crossInfo = mapManager.getCrossInfoMap().get(mapManager.getCurMapId());
|
||||
|
@ -901,7 +902,6 @@ public class MapLogic {
|
|||
int triggerXY = mapManager.getTriggerXY();
|
||||
cell.setEventId(Integer.parseInt(nextEventId));
|
||||
mapManager.addOrUpdateCell(triggerXY, cell);
|
||||
updateMapMission(mapManager,EventType.updateEvent,cell.getEventId(),0);
|
||||
}
|
||||
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
||||
updateMapMission(mapManager,EventType.fightEvent,0, 1);
|
||||
|
@ -1104,7 +1104,6 @@ public class MapLogic {
|
|||
if (cell != null) {
|
||||
cell.setEventId(nextEventId);
|
||||
mapManager.addOrUpdateCell(triggerXY, cell);
|
||||
updateMapMission(mapManager,EventType.updateEvent,cell.getEventId(),0);
|
||||
}
|
||||
}
|
||||
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
||||
|
|
|
@ -3,6 +3,8 @@ package com.ljsd.jieling.network.server;
|
|||
import com.google.protobuf.GeneratedMessage;
|
||||
import com.google.protobuf.InvalidProtocolBufferException;
|
||||
import com.ljsd.GameApplication;
|
||||
import com.ljsd.common.mogodb.LjsdMongoTemplate;
|
||||
import com.ljsd.jieling.db.mongo.MongoUtil;
|
||||
import com.ljsd.jieling.db.redis.RedisKey;
|
||||
import com.ljsd.jieling.db.redis.RedisUtil;
|
||||
import com.ljsd.jieling.exception.ErrorCode;
|
||||
|
@ -228,6 +230,7 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
|||
OnlineUserManager.userOffline(session.getUid());
|
||||
User user = UserManager.getUser(session.getUid());
|
||||
user.getPlayerInfoManager().setOffLineTime(System.currentTimeMillis());
|
||||
MongoUtil.getInstence().lastUpdate();
|
||||
// 下线处理的逻辑需要添加在这里
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Reference in New Issue