功能注释
parent
0399861e6b
commit
3dab8ba9a3
|
@ -97,8 +97,7 @@ public class ExplorerMapEventHandler extends BaseHandler<PlayerInfoProto.Explore
|
|||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, new int[]{exploreEventConfig.get(id).getRewardGroup()}, 1, 0, BIReason.EXPLORE_EVENT_MONSTER);
|
||||
builder.setDrop(drop);
|
||||
if ((int) fightResult.getCheckResult()[0] == 1) {
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_REPELMONSTER_NUM,
|
||||
1);
|
||||
//user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_REPELMONSTER_NUM,1);
|
||||
eventList.remove(index);
|
||||
}
|
||||
} else if (exploreEventConfig.get(id).getType() == 2) {
|
||||
|
@ -130,15 +129,13 @@ public class ExplorerMapEventHandler extends BaseHandler<PlayerInfoProto.Explore
|
|||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, new int[]{exploreEventConfig.get(id).getRewardGroup()}, 1, 0, BIReason.EXPLORE_EVENT_MONSTER);
|
||||
builder.setDrop(drop);
|
||||
if ((int) fightResult.getCheckResult()[0] == 1) {
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_REPELXINMO_NUM,
|
||||
1);
|
||||
//user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_REPELXINMO_NUM, 1);
|
||||
eventList.remove(index);
|
||||
}
|
||||
} else if (exploreEventConfig.get(id).getType() == 3) {
|
||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, new int[]{exploreEventConfig.get(id).getRewardGroup()}, 1, 0, BIReason.EXPLORE_EVENT_BOX);
|
||||
builder.setDrop(drop);
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_PICKYM_NUM,
|
||||
1);
|
||||
//user.getUserMissionManager().onGameEvent(user, GameEvent.EXPLORE, MissionType.EXPLORE_PICKYM_NUM, 1);
|
||||
eventList.remove(index);
|
||||
}
|
||||
user.getPlayerInfoManager().setExploreEvent(eventList);
|
||||
|
|
|
@ -68,7 +68,7 @@ public class ExplorerMapSendHandler extends BaseHandler<PlayerInfoProto.Explorer
|
|||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.ExplorerMapSendResponse.getNumber(), builder.build(), true);
|
||||
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) {
|
||||
int mapId = info.getMapId();
|
||||
int teamId = info.getTeamId();
|
||||
|
|
|
@ -121,7 +121,6 @@ public class ExplorerMapLogic {
|
|||
LOGGER.info("{}玩家赢了 怪物死 怪物走复活逻辑=>{} 掉落组=>{}", user.getId(), explorerInfo.getEnemyReliveTime(), exploreConfig.getReward());
|
||||
//活动是否开启
|
||||
Set<Integer> openActivityIdsByType = ActivityLogic.getInstance().getOpenActivityIdsByType(user, ActivityTypeEnum.EXPLORE_EXPECT_ACTIVITY.getType(), false);
|
||||
//if (ActivityLogic.checkActivityOpen(user, ActivityType.EXPLORE_EXPECT_ACTIVITY)) {
|
||||
if (openActivityIdsByType.size() > 0) {
|
||||
//同个工会 死亡计数
|
||||
int guildId = user.getPlayerInfoManager().getGuildId();
|
||||
|
@ -179,7 +178,7 @@ public class ExplorerMapLogic {
|
|||
}
|
||||
LOGGER.info("{}怪物死亡=》重生时间{}", user.getId(), explorerInfo.getEnemyReliveTime());
|
||||
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) {
|
||||
|
@ -293,11 +292,11 @@ public class ExplorerMapLogic {
|
|||
}
|
||||
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++) {
|
||||
LOGGER.info("gapDay------------------------>{}", i);
|
||||
sendRandomEvent(user);
|
||||
}
|
||||
}*/
|
||||
for (int i = keyVal.getValue().getBatteTime(); i <= offlineEndTime; i = i + battleInterval) {
|
||||
//复活玩家
|
||||
if (keyVal.getValue().getPlayerHp() == 0 && keyVal.getValue().getPlayerReliveTime() <= i) {
|
||||
|
@ -445,7 +444,7 @@ public class ExplorerMapLogic {
|
|||
user.getPlayerInfoManager().setExplorer(explorer);
|
||||
}
|
||||
//探索有消耗 整点刷出随机事件
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
/*Calendar calendar = Calendar.getInstance();
|
||||
int minute = calendar.get(Calendar.MINUTE);
|
||||
if (minute == 0) {
|
||||
if (explorer.size() > 0) {
|
||||
|
@ -453,7 +452,7 @@ public class ExplorerMapLogic {
|
|||
}
|
||||
}else{
|
||||
sendDisappearEvent(user);
|
||||
}
|
||||
}*/
|
||||
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -247,7 +247,7 @@ public class MinuteTask extends Thread {
|
|||
RedisUtil.getInstence().remove(RedisUtil.getInstence().getKey(RedisKey.CROSS_LINGMAISECRET_INFO,crossGroup + RedisKey.Delimiter_colon + 2,true));
|
||||
}
|
||||
//探索排行每日重置
|
||||
String key = RedisUtil.getInstence().getKey(RedisKey.EXPLORE_RANK,"",true);
|
||||
/*String key = RedisUtil.getInstence().getKey(RedisKey.EXPLORE_RANK,"",true);
|
||||
Set<String> exploreRank = RedisUtil.getInstence().getReverseZset(key,0,-1);
|
||||
int i = 0;
|
||||
for(String eachEle:exploreRank){
|
||||
|
@ -255,12 +255,11 @@ public class MinuteTask extends Thread {
|
|||
if(user == null){
|
||||
continue;
|
||||
}
|
||||
|
||||
i++;
|
||||
LOGGER.info("EXPLORE_RANK reset "+eachEle+" i:"+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("");*/
|
||||
|
||||
// 公会信息处理
|
||||
Map<Integer, GuildInfo> guildInfoMap = GuilidManager.guildInfoMap;
|
||||
|
|
Loading…
Reference in New Issue