探索注释打开
parent
434366cdd3
commit
f22b7b0c94
|
@ -68,7 +68,7 @@ public class ExplorerMapSendHandler extends BaseHandler<PlayerInfoProto.Explorer
|
||||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.ExplorerMapSendResponse.getNumber(), builder.build(), true);
|
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.ExplorerMapSendResponse.getNumber(), builder.build(), true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_FOOD_NUM, map.values().stream().mapToInt(Integer::intValue).sum());
|
user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_FOOD_NUM, map.values().stream().mapToInt(Integer::intValue).sum());
|
||||||
for (CommonProto.ExplorerMapSendInfo info : reqInfo) {
|
for (CommonProto.ExplorerMapSendInfo info : reqInfo) {
|
||||||
int mapId = info.getMapId();
|
int mapId = info.getMapId();
|
||||||
int teamId = info.getTeamId();
|
int teamId = info.getTeamId();
|
||||||
|
|
|
@ -179,7 +179,7 @@ public class ExplorerMapLogic {
|
||||||
}
|
}
|
||||||
LOGGER.info("{}怪物死亡=》重生时间{}", user.getId(), explorerInfo.getEnemyReliveTime());
|
LOGGER.info("{}怪物死亡=》重生时间{}", user.getId(), explorerInfo.getEnemyReliveTime());
|
||||||
RankEnum.toRank(RankEnum.EXPLORE_RANK.getType()).incrementRankScore(user.getId(), "", 1);
|
RankEnum.toRank(RankEnum.EXPLORE_RANK.getType()).incrementRankScore(user.getId(), "", 1);
|
||||||
//user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_ENEMY_NUM,1);
|
user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_ENEMY_NUM,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (time == 0) {
|
if (time == 0) {
|
||||||
|
@ -287,11 +287,11 @@ public class ExplorerMapLogic {
|
||||||
}
|
}
|
||||||
LOGGER.info("离线玩家队伍id", keyVal.getKey());
|
LOGGER.info("离线玩家队伍id", keyVal.getKey());
|
||||||
//探索事件
|
//探索事件
|
||||||
/*long gapDay = TimeUtils.getGapDaysByTwoTime(TimeUtils.getTimeStamp2(keyVal.getValue().getBatteTime()*1000L), TimeUtils.getTimeStamp2(offlineEndTime*1000L));
|
long gapDay = TimeUtils.getGapDaysByTwoTime(TimeUtils.getTimeStamp2(keyVal.getValue().getBatteTime()*1000L), TimeUtils.getTimeStamp2(offlineEndTime*1000L));
|
||||||
for(int i = 0;i< gapDay;i++){
|
for(int i = 0;i< gapDay;i++){
|
||||||
LOGGER.error("gapDay------------------------>{}",i);
|
LOGGER.info("gapDay------------------------>{}",i);
|
||||||
sendRandomEvent(user);
|
sendRandomEvent(user);
|
||||||
}*/
|
}
|
||||||
for (int i = keyVal.getValue().getBatteTime(); i <= offlineEndTime; i = i + battleInterval) {
|
for (int i = keyVal.getValue().getBatteTime(); i <= offlineEndTime; i = i + battleInterval) {
|
||||||
//复活玩家
|
//复活玩家
|
||||||
if (keyVal.getValue().getPlayerHp() == 0 && keyVal.getValue().getPlayerReliveTime() <= i) {
|
if (keyVal.getValue().getPlayerHp() == 0 && keyVal.getValue().getPlayerReliveTime() <= i) {
|
||||||
|
@ -442,11 +442,11 @@ public class ExplorerMapLogic {
|
||||||
//探索有消耗 整点刷出随机事件
|
//探索有消耗 整点刷出随机事件
|
||||||
if (explorer.size() > 0) {
|
if (explorer.size() > 0) {
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
/*int minute = calendar.get(Calendar.MINUTE);
|
int minute = calendar.get(Calendar.MINUTE);
|
||||||
if (minute == 0) {
|
if (minute == 0) {
|
||||||
sendRandomEvent(user);
|
//sendRandomEvent(user);
|
||||||
}*/
|
}
|
||||||
//sendRandomEvent(user);
|
sendRandomEvent(user);
|
||||||
}
|
}
|
||||||
sendDisappearEvent(user);
|
sendDisappearEvent(user);
|
||||||
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
||||||
|
|
|
@ -257,8 +257,8 @@ public class MinuteTask extends Thread {
|
||||||
}
|
}
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
LOGGER.error("------------------------------asdfa --------------:"+eachEle+" i:"+i);
|
LOGGER.info("EXPLORE_RANK reset "+eachEle+" i:"+i);
|
||||||
//user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_ENEMYHISTORYHIGH_NUM, i);
|
user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_ENEMYHISTORYHIGH_NUM, i);
|
||||||
}
|
}
|
||||||
RankEnum.toRank(RankEnum.EXPLORE_RANK.getType()).removeRank("");
|
RankEnum.toRank(RankEnum.EXPLORE_RANK.getType()).removeRank("");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue