跨服罗浮争锋 玉虚高分段没有匹配到机器人规则

back_recharge
xuexinpeng 2021-10-16 19:14:15 +08:00
parent 590003cee9
commit 5974b1a730
2 changed files with 16 additions and 0 deletions

View File

@ -98,6 +98,12 @@ public class CoreService implements RPCRequestIFace.Iface {
teams.put(GlobalsDef.FORMATION_NORMAL,nomal);
set.addAll(nomal);
//罗浮争锋
List<com.ljsd.jieling.logic.dao.TeamPosHeroInfo> luofu = user.getTeamPosManager().getTeamPosForHero().getOrDefault(GlobalsDef.WORLD_TEAM_ARENA_DEFENSE,new ArrayList<>());
List<TeamPosHeroInfo> luofurpc = new ArrayList<TeamPosHeroInfo>();
luofu.forEach(n->luofurpc.add(new TeamPosHeroInfo().setHeroId(n.getHeroId()).setPosition(n.getPosition())));
teams.put(GlobalsDef.WORLD_TEAM_ARENA_DEFENSE,luofurpc);
set.addAll(luofurpc);
//玉虚论道编队
List<com.ljsd.jieling.logic.dao.TeamPosHeroInfo> yxldOne = user.getTeamPosManager().getTeamPosForHero().getOrDefault(GlobalsDef.CROSS_YU_XU_LUN_DAO_ONE,new ArrayList<>());

View File

@ -242,6 +242,16 @@ public class CrossYuxulundaoLogic {
}else{
arenaRank.addAll(SArenaRobotConfig.getSArenaRobotConfigsByRangeAndCount(con.getScoreLow1(),con.getScoreUp1(),5));
}
//没有高分段机器人 从相近的里面取机器人
if(arenaRank.size() == 0){
for(int i= con.getId()-1;i>0;i--){
SMServerRankConfig serverRankConfig = SMServerRankConfig.serverRankConfig.get(i);
arenaRank.addAll(SArenaRobotConfig.getSArenaRobotConfigsByRangeAndCount(con.getScoreLow1(),con.getScoreUp1(),5));
if(arenaRank.size()>= 5){
break;
}
}
}
//正常从排行榜中匹配
//Set<String> arenaRank = new HashSet<String>();
/*int myRank = RedisUtil.getInstence().getZSetreverseRank(RedisKey.CROSS_YUXULUNDAO_RANK, Integer.toString(crossGroup), Integer.toString(user.getId())).intValue();